(ctx context.Context, gotAPIs, expectAPIs []*semantic.API, gotMappings, expectMappings *semantic.Mappings)
| 70 | } |
| 71 | |
| 72 | func 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. |
no test coverage detected