first commit
This commit is contained in:
17
test/sp/protocol/command/CommandFactory_test.cpp
Normal file
17
test/sp/protocol/command/CommandFactory_test.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
// #include <sp/protocol/command/CommandFactory.h>
|
||||
|
||||
// #include <sp/misc/Test.h>
|
||||
|
||||
// static int Test() {
|
||||
// for (std::size_t i = 0; i < static_cast<int>(td::protocol::CommandType::COMMAND_COUNT); i++) {
|
||||
// td::protocol::CommandType commandType = sp::protocol::CommandType(i);
|
||||
|
||||
// if (td::protocol::CommandFactory::CreateReadOnlyCommand(commandType)->GetType() != commandType)
|
||||
// return SP_TEST_FAILED;
|
||||
// }
|
||||
// return SP_TEST_SUCCESSFUL;
|
||||
// }
|
||||
|
||||
// int main() {
|
||||
// return Test();
|
||||
// }
|
||||
Reference in New Issue
Block a user