仅用于编写/更新/修复C++测试、配置GoogleTest/CTest、诊断失败或不稳定的测试,或添加覆盖率/消毒器时使用。
89
85%
Does it follow best practices?
Impact
97%
1.05xAverage score across 3 eval scenarios
Passed
No findings from the security scan
Coverage and sanitizer CMake configuration
ENABLE_COVERAGE option
100%
100%
Target-level coverage flags
100%
100%
GCC coverage flags correct
100%
100%
Clang coverage flags correct
100%
100%
ENABLE_ASAN option
100%
100%
ENABLE_UBSAN option
100%
100%
ENABLE_TSAN option
100%
100%
ASan flags include -fno-omit-frame-pointer
100%
100%
UBSan flags include -fno-omit-frame-pointer
0%
100%
lcov coverage workflow
100%
100%
Coverage configure command
100%
100%
Test doubles, assertions, and test isolation
MockNotifier uses MOCK_METHOD
100%
100%
Fake for InventoryRepository
100%
100%
EXPECT_CALL for notifier
100%
100%
ASSERT_* for preconditions
25%
25%
EXPECT_* for multiple checks
100%
100%
No real clock in tests
66%
83%
Dependency injection in tests
100%
100%
gtest_discover_tests used
100%
100%
Test directory structure
100%
100%
No overmocking value objects
100%
100%
GTest and GMock linked
100%
100%
CMake/CTest project setup with GoogleTest
cmake_minimum_required version
100%
100%
C++ standard set
100%
100%
CXX_STANDARD_REQUIRED ON
100%
100%
FetchContent for GoogleTest
100%
100%
Pinned GoogleTest version
100%
100%
gtest_discover_tests used
100%
100%
enable_testing and GoogleTest include
100%
100%
Test directory layout
100%
100%
ctest --output-on-failure
100%
100%
ctest --test-dir used
100%
100%
GTest and GMock linked
50%
100%
e04ea0b
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.