Files
tsl-devkit/lsp-server/test/test_lsp_any/facade_test.hpp
T
csh 64ec88f0c3 🗑️ 移除test_glaz
 新增测试`test_lsp_any`
2025-11-02 15:47:48 +08:00

37 lines
1.3 KiB
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#pragma once
#include "test_framework.hpp"
namespace lsp::test
{
// Facade 接口测试类(Serialize, Deserialize, check, debug
class FacadeTests
{
public:
static void registerTests(TestRunner& runner);
private:
// ==================== Serialize/Deserialize 测试 ====================
static TestResult testSerializeSimpleStruct();
static TestResult testSerializeComplexStruct();
static TestResult testSerializeLSPAny();
static TestResult testDeserializeSimpleStruct();
static TestResult testDeserializeComplexStruct();
static TestResult testDeserializeInvalidJSON();
static TestResult testSerializeDeserializeRoundtrip();
// ==================== check 命名空间测试 ====================
static TestResult testCheckIsObject();
static TestResult testCheckIsArray();
static TestResult testCheckIsString();
static TestResult testCheckIsNumber();
static TestResult testCheckIsBool();
static TestResult testCheckIsNull();
static TestResult testCheckMultipleTypes();
// ==================== debug 命名空间测试 ====================
static TestResult testDebugGetTypeName();
static TestResult testDebugGetIdStringInt();
static TestResult testDebugGetIdStringString();
};
}