MCPcopy Create free account
hub / github.com/google/gapid / checkMappings

Function checkMappings

gapil/bapi/bapi_test.go:72–81  ·  view source on GitHub ↗
(ctx context.Context,
	gotAPIs, expectAPIs []*semantic.API,
	gotMappings, expectMappings *semantic.Mappings)

Source from the content-addressed store, hash-verified

70}
71
72func checkMappings(ctx context.Context,
73 gotAPIs, expectAPIs []*semantic.API,
74 gotMappings, expectMappings *semantic.Mappings) {
75
76 translateMapping(gotAPIs, expectAPIs, gotMappings)
77
78 assert.For(ctx, "SemanticToAST").
79 That(gotMappings.SemanticToAST).
80 DeepEquals(expectMappings.SemanticToAST)
81}
82
83// translateMapping translates the keys of mapping from the nodes of the from
84// API tree to their equivalent in the to API tree.

Callers 1

TestEncodeDecodeFunction · 0.85

Calls 4

translateMappingFunction · 0.85
ThatMethod · 0.80
ForMethod · 0.80
DeepEqualsMethod · 0.45

Tested by

no test coverage detected