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

Function testLimitCommands

parser/parser_test.go:1040–1051  ·  view source on GitHub ↗
(t *testing.T, expectedLimitCommand ast.LimitCommand, actualLimitCommand *ast.LimitCommand)

Source from the content-addressed store, hash-verified

1038}
1039
1040func testLimitCommands(t *testing.T, expectedLimitCommand ast.LimitCommand, actualLimitCommand *ast.LimitCommand) {
1041
1042 if expectedLimitCommand.Token.Type != actualLimitCommand.Token.Type {
1043 t.Errorf("Expecting Token TokenType: %q, got: %q", expectedLimitCommand.Token.Type, actualLimitCommand.Token.Type)
1044 }
1045 if expectedLimitCommand.Token.Literal != actualLimitCommand.Token.Literal {
1046 t.Errorf("Expecting Token Literal: %s, got: %s", expectedLimitCommand.Token.Literal, actualLimitCommand.Token.Literal)
1047 }
1048 if expectedLimitCommand.Count != actualLimitCommand.Count {
1049 t.Errorf("Expecting Count to have value: %d, got: %d", expectedLimitCommand.Count, actualLimitCommand.Count)
1050 }
1051}
1052
1053func testOffsetCommands(t *testing.T, expectedOffsetCommand ast.OffsetCommand, actualOffsetCommand *ast.OffsetCommand) {
1054

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected