generated from userver-framework/service_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add format and gen to CI
- Loading branch information
Showing
12 changed files
with
147 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
benchs/hello_benchmark.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
src/views/register/view.hpp | ||
src/views/register/view.cpp | ||
src/views/register/Request.hpp | ||
src/views/register/Request.cpp | ||
src/views/login/view.hpp | ||
src/views/login/view.cpp | ||
src/views/login/Request.hpp | ||
src/views/login/Request.cpp | ||
src/views/hello/view.hpp | ||
src/views/hello/view.cpp | ||
src/utils/json_type.hpp | ||
src/utils/json_type.cpp | ||
src/utils/component_list_fwd.hpp | ||
src/models/user_type/type.hpp | ||
src/models/user_type/postgre.hpp | ||
src/models/user_type/parse.hpp | ||
src/models/user_type/parse.cpp | ||
src/models/user/type.hpp | ||
src/models/user/postgre.hpp | ||
src/models/auth_token/type.hpp | ||
src/models/auth_token/serialize.hpp | ||
src/http/handler_parsed.hpp | ||
src/components/controllers/user_controller_fwd.hpp | ||
src/components/controllers/user_controller_fwd.cpp | ||
src/components/controllers/user_controller.hpp | ||
src/components/controllers/user_controller.cpp | ||
src/components/controllers/token_controller_fwd.hpp | ||
src/components/controllers/token_controller_fwd.cpp | ||
src/components/controllers/token_controller.hpp | ||
src/components/controllers/token_controller.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
service/main.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
utests/hello_test.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
#include "../src/views/hello/view.hpp" | ||
#include <vector> | ||
#include <userver/utest/utest.hpp> | ||
|
||
#include <vector> | ||
#include "../src/views/hello/view.hpp" | ||
|
||
UTEST(SayHelloTo, Basic) { | ||
EXPECT_EQ(service_template::SayHelloTo("Developer", service_template::UserType::kKnown), "Hi again, Developer!\n"); | ||
EXPECT_EQ(service_template::SayHelloTo("", service_template::UserType::kFirstTime), "Hello, unknown user!\n"); | ||
EXPECT_EQ(service_template::SayHelloTo("Developer", service_template::UserType::kFirstTime), "Hello, Developer!\n"); | ||
EXPECT_EQ(service_template::SayHelloTo("Developer", | ||
service_template::UserType::kKnown), | ||
"Hi again, Developer!\n"); | ||
EXPECT_EQ( | ||
service_template::SayHelloTo("", service_template::UserType::kFirstTime), | ||
"Hello, unknown user!\n"); | ||
EXPECT_EQ(service_template::SayHelloTo( | ||
"Developer", service_template::UserType::kFirstTime), | ||
"Hello, Developer!\n"); | ||
} |
2 changes: 1 addition & 1 deletion
2
.vscode/vsu_timetable.code-workspace → vsu_timetable.code-workspace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "../", | ||
"path": ".", | ||
"name" : "vsu_timetable" | ||
}, | ||
], | ||
|