File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 11#include < drogon/DrObject.h>
22#include < drogon/drogon_test.h>
3+ #include < drogon/HttpController.h>
34
45using namespace drogon ;
56
@@ -60,10 +61,26 @@ class TestE : public DrObject<TestE>
6061 static constexpr double isAutoCreation = 3.0 ;
6162};
6263
64+ class CtrlA : public HttpController <CtrlA>
65+ {
66+ public:
67+ METHOD_LIST_BEGIN
68+ METHOD_LIST_END
69+ };
70+
71+ class CtrlB : public HttpController <CtrlB, false >
72+ {
73+ public:
74+ METHOD_LIST_BEGIN
75+ METHOD_LIST_END
76+ };
77+
6378DROGON_TEST (IsAutoCreationClassTest)
6479{
6580 STATIC_REQUIRE (isAutoCreationClass<TestA>::value == false );
6681 STATIC_REQUIRE (isAutoCreationClass<TestC>::value == true );
6782 STATIC_REQUIRE (isAutoCreationClass<TestD>::value == false );
6883 STATIC_REQUIRE (isAutoCreationClass<TestE>::value == false );
84+ STATIC_REQUIRE (isAutoCreationClass<CtrlA>::value == true );
85+ STATIC_REQUIRE (isAutoCreationClass<CtrlB>::value == false );
6986}
You can’t perform that action at this time.
0 commit comments