MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / unit

Function unit

__tests__/cpp-template-instantiations.test.ts:914–918  ·  view source on GitHub ↗
(kind: string)

Source from the content-addressed store, hash-verified

912 `TYPED_TEST_P(Shared, ${kind}) { TypeParam::Go(); }`,
913 );
914 const unit = (kind: string): string => lines(
915 `#include "${kind.toLowerCase()}_test.h"`,
916 `struct ${kind}Type { static int Go() { return 1; } };`,
917 `INSTANTIATE_TYPED_TEST_SUITE_P(${kind}, Shared, ::testing::Types<${kind}Type>);`,
918 );
919 const cg = await indexed({
920 'map_test.h': test('Map'),
921 'set_test.h': test('Set'),

Calls 1

linesFunction · 0.70

Tested by

no test coverage detected