MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / tokenMapEquals

Function tokenMapEquals

parser/parser_test.go:1006–1016  ·  view source on GitHub ↗
(a map[token.Token]ast.Anonymitifier, b map[token.Token]ast.Anonymitifier)

Source from the content-addressed store, hash-verified

1004}
1005
1006func tokenMapEquals(a map[token.Token]ast.Anonymitifier, b map[token.Token]ast.Anonymitifier) bool {
1007 if len(a) != len(b) {
1008 return false
1009 }
1010 for k, v := range a {
1011 if v.GetToken().Literal != b[k].GetToken().Literal {
1012 return false
1013 }
1014 }
1015 return true
1016}
1017
1018func testOrderByCommands(t *testing.T, expectedOrderByCommand ast.OrderByCommand, actualOrderByCommand *ast.OrderByCommand) {
1019

Callers 1

testUpdateStatementFunction · 0.85

Calls 1

GetTokenMethod · 0.65

Tested by

no test coverage detected