优化了主页的读取方式

This commit is contained in:
zjk
2025-02-27 10:00:42 +08:00
parent 4ee5cbfb86
commit 115ee57b14
5 changed files with 176 additions and 38 deletions
+11
View File
@@ -49,6 +49,17 @@ TEST_CASE("SQLiteDB Test", "[SQLiteDB]") {
}
}
SECTION("Test GETDATA") {
StateData stateData;
std::string time;
REQUIRE(db.getStateData(stateData,time) == true);
REQUIRE(db.getStateData(stateData) == true);
REQUIRE(stateData.state_id == 1);
REQUIRE(stateData.state_name == "test");
cout << "-------------------------------------------------" << time << endl;
}
}