Updated test cases documentation
This commit is contained in:
@@ -14,7 +14,7 @@ diagrams:
|
||||
using_namespace: clanguml::t00065
|
||||
```
|
||||
## Source code
|
||||
File t00065.cc
|
||||
File `tests/t00065/t00065.cc`
|
||||
```cpp
|
||||
#include "module1/module1.h"
|
||||
#include "module2/module2.h"
|
||||
@@ -26,6 +26,80 @@ struct R {
|
||||
C<B> c;
|
||||
D<B> d;
|
||||
};
|
||||
}
|
||||
}
|
||||
```
|
||||
File `tests/t00065/module1/module1.h`
|
||||
```cpp
|
||||
#include "submodule1a/submodule1a.h"
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00065 {
|
||||
|
||||
enum class ABC { a, b, c };
|
||||
|
||||
enum XYZ { x, y, z };
|
||||
|
||||
struct A {
|
||||
ABC abc;
|
||||
XYZ xyz;
|
||||
detail::AImpl *pimpl;
|
||||
};
|
||||
}
|
||||
}
|
||||
```
|
||||
File `tests/t00065/module1/submodule1a/submodule1a.h`
|
||||
```cpp
|
||||
#pragma once
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00065 {
|
||||
namespace detail {
|
||||
struct AImpl { };
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
File `tests/t00065/module2/module2.h`
|
||||
```cpp
|
||||
#pragma once
|
||||
|
||||
#include "concepts/concepts.h"
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00065 {
|
||||
struct B {
|
||||
B() = default;
|
||||
void b() { }
|
||||
};
|
||||
|
||||
template <typename T> struct C {
|
||||
T *t;
|
||||
};
|
||||
|
||||
template <bconcept T> struct D {
|
||||
T t;
|
||||
C<int> c;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
File `tests/t00065/module2/concepts/concepts.h`
|
||||
```cpp
|
||||
#pragma once
|
||||
|
||||
namespace clanguml {
|
||||
namespace t00065 {
|
||||
|
||||
template <typename T>
|
||||
concept bconcept = requires(T t) {
|
||||
T{};
|
||||
t.b();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -222,6 +296,7 @@ struct R {
|
||||
"is_constexpr": false,
|
||||
"is_constructor": true,
|
||||
"is_copy_assignment": false,
|
||||
"is_coroutine": false,
|
||||
"is_defaulted": true,
|
||||
"is_deleted": false,
|
||||
"is_move_assignment": false,
|
||||
@@ -247,6 +322,7 @@ struct R {
|
||||
"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