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

Function spaceArrayEquals

parser/parser_test.go:988–1004  ·  view source on GitHub ↗
(a []ast.Space, b []ast.Space)

Source from the content-addressed store, hash-verified

986}
987
988func spaceArrayEquals(a []ast.Space, b []ast.Space) bool {
989 if len(a) != len(b) {
990 return false
991 }
992 for i, v := range a {
993 if v.ColumnName.Literal != b[i].ColumnName.Literal {
994 return false
995 }
996 if v.ContainsAggregateFunc() != b[i].ContainsAggregateFunc() {
997 return false
998 }
999 if v.ContainsAggregateFunc() && b[i].ContainsAggregateFunc() && v.AggregateFunc.Literal != b[i].AggregateFunc.Literal {
1000 return false
1001 }
1002 }
1003 return true
1004}
1005
1006func tokenMapEquals(a map[token.Token]ast.Anonymitifier, b map[token.Token]ast.Anonymitifier) bool {
1007 if len(a) != len(b) {

Callers 1

testSelectStatementFunction · 0.85

Calls 1

ContainsAggregateFuncMethod · 0.80

Tested by

no test coverage detected