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

Function tokenArrayEquals

parser/parser_test.go:973–986  ·  view source on GitHub ↗
(a []token.Token, b []token.Token)

Source from the content-addressed store, hash-verified

971}
972
973func tokenArrayEquals(a []token.Token, b []token.Token) bool {
974 if len(a) != len(b) {
975 return false
976 }
977 for i, v := range a {
978 if v.Literal != b[i].Literal {
979 return false
980 }
981 if v.Type != b[i].Type {
982 return false
983 }
984 }
985 return true
986}
987
988func spaceArrayEquals(a []ast.Space, b []ast.Space) bool {
989 if len(a) != len(b) {

Callers 2

testCreateStatementFunction · 0.85
testInsertStatementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected