7
7
8
8
using namespace sb ::cf::json;
9
9
10
- class JsonObjectExtTest : public testing ::Test
10
+ class JsonExtTest : public testing ::Test
11
11
{
12
12
protected:
13
13
static void TearUpTestSuite () {}
14
14
15
- JsonObjectExtTest () {}
15
+ JsonExtTest () {}
16
16
17
17
void SetUp () override {}
18
18
@@ -28,7 +28,7 @@ Params<std::string_view, bool, sb::cf::JsonValue> FindData{
28
28
{" inner" , true , -123 },
29
29
{" nonExisting" , false , tao::json::null},
30
30
};
31
- PARAMS_TEST (JsonObjectExtTest , ShouldFing, FindData)
31
+ PARAMS_TEST (JsonExtTest , ShouldFing, FindData)
32
32
{
33
33
sb::cf::JsonValue json = {
34
34
{" str" , " hello" }, {" number" , 123 }, {" array" , sb::cf::JsonArray{{{" key" , " value" }}}}, {" inner" , -123 }};
@@ -59,7 +59,7 @@ Params<std::string_view, bool, sb::cf::JsonValue> DeepFindData{
59
59
{" inner::inner:str" , false , tao::json::null},
60
60
61
61
};
62
- PARAMS_TEST (JsonObjectExtTest , ShouldDeepFing, DeepFindData)
62
+ PARAMS_TEST (JsonExtTest , ShouldDeepFing, DeepFindData)
63
63
{
64
64
sb::cf::JsonValue json = {{" str" , " hello" },
65
65
{" number" , 123 },
@@ -82,7 +82,7 @@ PARAMS_TEST(JsonObjectExtTest, ShouldDeepFing, DeepFindData)
82
82
}
83
83
}
84
84
85
- TEST_F (JsonObjectExtTest , ShouldDeepGetOrOverride)
85
+ TEST_F (JsonExtTest , ShouldDeepGetOrOverride)
86
86
{
87
87
sb::cf::JsonObject json = {{" str" , " hello" },
88
88
{" number" , 123 },
@@ -114,7 +114,7 @@ TEST_F(JsonObjectExtTest, ShouldDeepGetOrOverride)
114
114
EXPECT_EQ (json, expectedJson);
115
115
}
116
116
117
- TEST_F (JsonObjectExtTest , ShouldDeepGetOrOverrideArrayElement)
117
+ TEST_F (JsonExtTest , ShouldDeepGetOrOverrideArrayElement)
118
118
{
119
119
sb::cf::JsonObject json = {{" str" , " hello" }};
120
120
@@ -129,7 +129,7 @@ TEST_F(JsonObjectExtTest, ShouldDeepGetOrOverrideArrayElement)
129
129
EXPECT_EQ (json, expected);
130
130
}
131
131
132
- TEST_F (JsonObjectExtTest , ShouldDeepGetOrOverrideExistingArrayElement)
132
+ TEST_F (JsonExtTest , ShouldDeepGetOrOverrideExistingArrayElement)
133
133
{
134
134
sb::cf::JsonObject json = {{" str" , " hello" }, {" array" , sb::cf::JsonArray{1234 , {{" second" , " element" }}}}};
135
135
@@ -143,7 +143,7 @@ TEST_F(JsonObjectExtTest, ShouldDeepGetOrOverrideExistingArrayElement)
143
143
EXPECT_EQ (json, expected);
144
144
}
145
145
146
- TEST_F (JsonObjectExtTest , ShouldDeepGetOrOverrideWrongArrayElement)
146
+ TEST_F (JsonExtTest , ShouldDeepGetOrOverrideWrongArrayElement)
147
147
{
148
148
sb::cf::JsonObject json = {{" str" , " hello" }};
149
149
@@ -154,7 +154,7 @@ TEST_F(JsonObjectExtTest, ShouldDeepGetOrOverrideWrongArrayElement)
154
154
EXPECT_EQ (json, expected);
155
155
}
156
156
157
- TEST_F (JsonObjectExtTest , ShouldDeepGetOrOverrideDestroy)
157
+ TEST_F (JsonExtTest , ShouldDeepGetOrOverrideDestroy)
158
158
{
159
159
sb::cf::JsonObject json = {{" str" , " hello" },
160
160
{" number" , 123 },
@@ -183,14 +183,14 @@ TEST_F(JsonObjectExtTest, ShouldDeepGetOrOverrideDestroy)
183
183
EXPECT_EQ (json, expected);
184
184
}
185
185
186
- TEST_F (JsonObjectExtTest , ShouldFaildDeepGetOrOverrideEmpty)
186
+ TEST_F (JsonExtTest , ShouldFaildDeepGetOrOverrideEmpty)
187
187
{
188
188
sb::cf::JsonObject json = {{" str" , " hello" }};
189
189
190
190
EXPECT_ANY_THROW (sb::cf::details::JsonExt::deepGetOrOverride (json, std::vector<std::string_view>{}));
191
191
}
192
192
193
- TEST_F (JsonObjectExtTest , SouldDeepMergeEmptyJsonValue)
193
+ TEST_F (JsonExtTest , SouldDeepMergeEmptyJsonValue)
194
194
{
195
195
sb::cf::JsonValue json;
196
196
@@ -203,7 +203,7 @@ TEST_F(JsonObjectExtTest, SouldDeepMergeEmptyJsonValue)
203
203
EXPECT_EQ (json, expected);
204
204
}
205
205
206
- TEST_F (JsonObjectExtTest , SouldDeepMergeJsonValue)
206
+ TEST_F (JsonExtTest , SouldDeepMergeJsonValue)
207
207
{
208
208
209
209
sb::cf::JsonValue json = {{" str" , " hello" },
@@ -246,7 +246,7 @@ TEST_F(JsonObjectExtTest, SouldDeepMergeJsonValue)
246
246
EXPECT_EQ (json, expectedJson);
247
247
}
248
248
249
- TEST_F (JsonObjectExtTest , SouldDeepMergeJsonArray)
249
+ TEST_F (JsonExtTest , SouldDeepMergeJsonArray)
250
250
{
251
251
252
252
sb::cf::JsonArray json{{{" str" , " hello" }},
0 commit comments