Skip to content

[FEATURE]: Tests for cryptography subsystem #115

Description

@NikSimDev

Feature Category

Testing tooling

Problem Statement

It is necessary to understand whether the cryptography subsystem is performing its functions correctly. We plan to wrap all subsystems in tests.

Proposed Solution

Use the path tests/unit to create tests (you can use the ready‑made example in ./configuration).

API Design

TEST(ConfigTest, SetConfigValue) {
	lightlib::ConfigManager::initGlobal("config_test.json");
	lightlib::global_config->setAutoSave(false);
	lightlib::global_config->set<std::string>("app_name", "NewLightApp");

	std::string value = lightlib::global_config->get("app_name", "default_app");

	EXPECT_EQ(value, "NewLightApp");
}

Alternative Solutions

No response

Use Case

No response

Impact and Scope

No response

Contribution

  • I would like to implement this feature
  • I need guidance on implementation
  • I can help with testing

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions