MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / TEST_F

Function TEST_F

tests/UnitTest/JsonHandlerTest.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 };
18
19 TEST_F(JsonHandlerTest, TestGetCompressedJson_Success)
20 {
21 std::string inputJson = R"({"key": "value"})";
22 auto result = m_jsonHandler.GetCompressedJson(inputJson);
23
24 ASSERT_TRUE(result.success);
25 ASSERT_EQ(result.response, R"({"key":"value"})");
26 }
27
28 TEST_F(JsonHandlerTest, TestGetCompressedJson_InvalidJson)
29 {

Callers

nothing calls this directly

Calls 4

GetCompressedJsonMethod · 0.80
FormatJsonMethod · 0.45
ValidateJsonMethod · 0.45
SortJsonByKeyMethod · 0.45

Tested by

no test coverage detected