MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / TEST

Function TEST

test/opt/module_test.cpp:33–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using spvtest::GetIdBound;
32
33TEST(ModuleTest, SetIdBound) {
34 Module m;
35 // It's initialized to 0.
36 EXPECT_EQ(0u, GetIdBound(m));
37
38 m.SetIdBound(19);
39 EXPECT_EQ(19u, GetIdBound(m));
40
41 m.SetIdBound(102);
42 EXPECT_EQ(102u, GetIdBound(m));
43}
44
45// Returns an IRContext owning the module formed by assembling the given text,
46// then loading the result.

Callers

nothing calls this directly

Calls 15

GetIdBoundFunction · 0.85
AssembleAndDisassembleFunction · 0.85
SetIdBoundMethod · 0.80
ComputeIdBoundMethod · 0.80
id_boundMethod · 0.80
set_max_id_boundMethod · 0.80
TakeNextIdBoundMethod · 0.80
BuildModuleFunction · 0.70
moduleMethod · 0.45
strMethod · 0.45
ForEachInstMethod · 0.45
opcodeMethod · 0.45

Tested by

no test coverage detected