Skip to content

Commit 6f204b4

Browse files
committed
refactor: format JSON strings for consistency in test cases
1 parent bf5b32d commit 6f204b4

File tree

173 files changed

+1173
-1033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+1173
-1033
lines changed

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
"request": "launch",
138138
"program": "${workspaceFolder}/out/linux/x64/tests/standalone/ten_runtime_smoke_test",
139139
"args": [
140-
"--gtest_filter=SchemaTest.SendCmd2"
140+
"--gtest_filter=PropertyTest.InGraphUseEnv3"
141141
],
142142
"cwd": "${workspaceFolder}/out/linux/x64/tests/standalone/",
143143
"env": {

tests/ten_runtime/smoke/audio_frame_test/basic.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ class test_app : public ten::app_t {
5555
void on_configure(ten::ten_env_t &ten_env) override {
5656
bool rc = ten_env.init_property_from_json(
5757
// clang-format off
58-
R"({
59-
"_ten": {
60-
"uri": "msgpack://127.0.0.1:8001/",
61-
"log_level": 2
62-
}
63-
})"
58+
R"({
59+
"_ten": {
60+
"uri": "msgpack://127.0.0.1:8001/",
61+
"log_level": 2
62+
}
63+
})"
6464
// clang-format on
6565
,
6666
nullptr);

tests/ten_runtime/smoke/audio_frame_test/create_from_json.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ class test_app : public ten::app_t {
6969
void on_configure(ten::ten_env_t &ten_env) override {
7070
bool rc = ten_env.init_property_from_json(
7171
// clang-format off
72-
R"({
73-
"_ten": {
74-
"uri": "msgpack://127.0.0.1:8001/",
75-
"log_level": 2
76-
}
77-
})"
72+
R"({
73+
"_ten": {
74+
"uri": "msgpack://127.0.0.1:8001/",
75+
"log_level": 2
76+
}
77+
})"
7878
// clang-format on
7979
,
8080
nullptr);

tests/ten_runtime/smoke/audio_frame_test/from_json.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ class test_app : public ten::app_t {
6767
void on_configure(ten::ten_env_t &ten_env) override {
6868
bool rc = ten_env.init_property_from_json(
6969
// clang-format off
70-
R"({
71-
"_ten": {
72-
"uri": "msgpack://127.0.0.1:8001/",
73-
"log_level": 2
74-
}
75-
})"
70+
R"({
71+
"_ten": {
72+
"uri": "msgpack://127.0.0.1:8001/",
73+
"log_level": 2
74+
}
75+
})"
7676
// clang-format on
7777
,
7878
nullptr);

tests/ten_runtime/smoke/audio_frame_test/multi_dest_pcm_frame.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ class test_app : public ten::app_t {
131131
void on_configure(ten::ten_env_t &ten_env) override {
132132
bool rc = ten_env.init_property_from_json(
133133
// clang-format off
134-
R"({
135-
"_ten": {
136-
"uri": "msgpack://127.0.0.1:8001/",
137-
"log_level": 2
138-
}
139-
})"
134+
R"({
135+
"_ten": {
136+
"uri": "msgpack://127.0.0.1:8001/",
137+
"log_level": 2
138+
}
139+
})"
140140
// clang-format on
141141
,
142142
nullptr);

tests/ten_runtime/smoke/basic/basic_extensions_init_dependency.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ class test_app : public ten::app_t {
117117
void on_configure(ten::ten_env_t &ten_env) override {
118118
bool rc = ten_env.init_property_from_json(
119119
// clang-format off
120-
R"({
121-
"_ten": {
122-
"uri": "msgpack://127.0.0.1:8001/",
123-
"log_level": 2
124-
}
125-
})"
120+
R"({
121+
"_ten": {
122+
"uri": "msgpack://127.0.0.1:8001/",
123+
"log_level": 2
124+
}
125+
})"
126126
// clang-format on
127127
,
128128
nullptr);

tests/ten_runtime/smoke/basic/basic_hello_world_1.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ class test_app : public ten::app_t {
3737
void on_configure(ten::ten_env_t &ten_env) override {
3838
bool rc = ten_env.init_property_from_json(
3939
// clang-format off
40-
R"({
41-
"_ten": {
42-
"uri": "msgpack://127.0.0.1:8001/",
43-
"log_level": 2
44-
}
45-
})"
40+
R"({
41+
"_ten": {
42+
"uri": "msgpack://127.0.0.1:8001/",
43+
"log_level": 2
44+
}
45+
})"
4646
// clang-format on
4747
,
4848
nullptr);

tests/ten_runtime/smoke/basic/basic_hello_world_2.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class test_app : public ten::app_t {
3434
void on_configure(ten::ten_env_t &ten_env) override {
3535
bool rc = ten_env.init_property_from_json(
3636
// clang-format off
37-
R"({
38-
"_ten": {
39-
"uri": "msgpack://127.0.0.1:8001/",
40-
"log_level": 2
41-
}
42-
})"
37+
R"({
38+
"_ten": {
39+
"uri": "msgpack://127.0.0.1:8001/",
40+
"log_level": 2
41+
}
42+
})"
4343
// clang-format on
4444
,
4545
nullptr);

tests/ten_runtime/smoke/basic/basic_loop.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ class test_app : public ten::app_t {
8686
void on_configure(ten::ten_env_t &ten_env) override {
8787
bool rc = ten_env.init_property_from_json(
8888
// clang-format off
89-
R"({
90-
"_ten": {
91-
"uri": "msgpack://127.0.0.1:8001/",
92-
"log_level": 2
93-
}
94-
})"
89+
R"({
90+
"_ten": {
91+
"uri": "msgpack://127.0.0.1:8001/",
92+
"log_level": 2
93+
}
94+
})"
9595
// clang-format on
9696
,
9797
nullptr);

tests/ten_runtime/smoke/basic/basic_loop_cmd.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,12 @@ class test_app : public ten::app_t {
8888
void on_configure(ten::ten_env_t &ten_env) override {
8989
bool rc = ten_env.init_property_from_json(
9090
// clang-format off
91-
R"({
92-
"_ten": {
93-
"uri": "msgpack://127.0.0.1:8001/",
94-
"log_level": 2
95-
}
96-
})"
91+
R"({
92+
"_ten": {
93+
"uri": "msgpack://127.0.0.1:8001/",
94+
"log_level": 2
95+
}
96+
})"
9797
// clang-format on
9898
,
9999
nullptr);

0 commit comments

Comments
 (0)