Updated test cases documentation
This commit is contained in:
@@ -14,7 +14,29 @@ diagrams:
|
||||
- clanguml::t00048
|
||||
```
|
||||
## Source code
|
||||
File b_t00048.h
|
||||
File `tests/t00048/t00048.h`
|
||||
```cpp
|
||||
#pragma once
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00048 {
|
||||
|
||||
struct Base {
|
||||
int base;
|
||||
|
||||
virtual void foo() = 0;
|
||||
};
|
||||
|
||||
template <typename T> struct BaseTemplate {
|
||||
T base;
|
||||
|
||||
virtual void foo() = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
File `tests/t00048/b_t00048.h`
|
||||
```cpp
|
||||
#include "t00048.h"
|
||||
|
||||
@@ -38,19 +60,19 @@ template <typename T> struct BTemplate : public BaseTemplate<T> {
|
||||
}
|
||||
}
|
||||
```
|
||||
File b_t00048.cc
|
||||
File `tests/t00048/a_t00048.cc`
|
||||
```cpp
|
||||
#include "b_t00048.h"
|
||||
#include "a_t00048.h"
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00048 {
|
||||
|
||||
void B::foo() { }
|
||||
void A::foo() { }
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
File t00048.cc
|
||||
File `tests/t00048/t00048.cc`
|
||||
```cpp
|
||||
#include "t00048.h"
|
||||
|
||||
@@ -59,7 +81,7 @@ namespace t00048 {
|
||||
}
|
||||
}
|
||||
```
|
||||
File a_t00048.h
|
||||
File `tests/t00048/a_t00048.h`
|
||||
```cpp
|
||||
#include "t00048.h"
|
||||
|
||||
@@ -83,36 +105,14 @@ template <typename T> struct ATemplate : public BaseTemplate<T> {
|
||||
}
|
||||
}
|
||||
```
|
||||
File a_t00048.cc
|
||||
File `tests/t00048/b_t00048.cc`
|
||||
```cpp
|
||||
#include "a_t00048.h"
|
||||
#include "b_t00048.h"
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00048 {
|
||||
|
||||
void A::foo() { }
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
File t00048.h
|
||||
```cpp
|
||||
#pragma once
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00048 {
|
||||
|
||||
struct Base {
|
||||
int base;
|
||||
|
||||
virtual void foo() = 0;
|
||||
};
|
||||
|
||||
template <typename T> struct BaseTemplate {
|
||||
T base;
|
||||
|
||||
virtual void foo() = 0;
|
||||
};
|
||||
void B::foo() { }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -157,6 +157,7 @@ template <typename T> struct BaseTemplate {
|
||||
"is_constexpr": false,
|
||||
"is_constructor": false,
|
||||
"is_copy_assignment": false,
|
||||
"is_coroutine": false,
|
||||
"is_defaulted": false,
|
||||
"is_deleted": false,
|
||||
"is_move_assignment": false,
|
||||
@@ -218,6 +219,7 @@ template <typename T> struct BaseTemplate {
|
||||
"is_constexpr": false,
|
||||
"is_constructor": false,
|
||||
"is_copy_assignment": false,
|
||||
"is_coroutine": false,
|
||||
"is_defaulted": false,
|
||||
"is_deleted": false,
|
||||
"is_move_assignment": false,
|
||||
@@ -293,6 +295,7 @@ template <typename T> struct BaseTemplate {
|
||||
"is_constexpr": false,
|
||||
"is_constructor": false,
|
||||
"is_copy_assignment": false,
|
||||
"is_coroutine": false,
|
||||
"is_defaulted": false,
|
||||
"is_deleted": false,
|
||||
"is_move_assignment": false,
|
||||
@@ -361,6 +364,7 @@ template <typename T> struct BaseTemplate {
|
||||
"is_constexpr": false,
|
||||
"is_constructor": false,
|
||||
"is_copy_assignment": false,
|
||||
"is_coroutine": false,
|
||||
"is_defaulted": false,
|
||||
"is_deleted": false,
|
||||
"is_move_assignment": false,
|
||||
@@ -436,6 +440,7 @@ template <typename T> struct BaseTemplate {
|
||||
"is_constexpr": false,
|
||||
"is_constructor": false,
|
||||
"is_copy_assignment": false,
|
||||
"is_coroutine": false,
|
||||
"is_defaulted": false,
|
||||
"is_deleted": false,
|
||||
"is_move_assignment": false,
|
||||
@@ -504,6 +509,7 @@ template <typename T> struct BaseTemplate {
|
||||
"is_constexpr": false,
|
||||
"is_constructor": false,
|
||||
"is_copy_assignment": false,
|
||||
"is_coroutine": false,
|
||||
"is_defaulted": false,
|
||||
"is_deleted": false,
|
||||
"is_move_assignment": false,
|
||||
|
||||
Reference in New Issue
Block a user