用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/SRombauts/SQLiteCpp --skill sqlitecpp-testing-practices命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | sqlitecpp-testing-practices |
| description | GoogleTest patterns and testing practices for SQLiteCpp test coverage and structure. |
googletest/ fallback).tests/*_test.cpp (see tests/Database_test.cpp).@ingroup tests.#include <gtest/gtest.h>
#include <SQLiteCpp/Database.h>
TEST(DatabaseTest, CanOpenReadWriteDatabase)
{
// Arrange: setup test database
SQLite::Database db(":memory:", SQLite::OPEN_READWRITE | SQLite::OPEN_CREATE);
// Act: perform operation
db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY)");
// Assert: verify behavior
EXPECT_EQ(1, db.exec("INSERT INTO test DEFAULT VALUES"));
}
tests/NewClass_test.cpp.CMakeLists.txt under SQLITECPP_TESTS.meson.build under sqlitecpp_test_srcs.:memory: databases when possible.tests/Database_test.cpp).TEST() for independent tests; use TEST_F() only when a shared fixture is needed.# CMake (from build dir)
ctest --output-on-failure
bin/SQLiteCpp_tests --gtest_filter=Database.*
# Meson
meson test -C builddir
meson test -C builddir --test-args="--gtest_filter=Database.*"
tests/Database_test.cppCMakeLists.txt (SQLITECPP_TESTS)meson.build (sqlitecpp_test_srcs)sqlitecpp-workflowsqlitecpp-build-cmake, sqlitecpp-build-meson