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

Function testOffsetCommands

parser/parser_test.go:1053–1064  ·  view source on GitHub ↗
(t *testing.T, expectedOffsetCommand ast.OffsetCommand, actualOffsetCommand *ast.OffsetCommand)

Source from the content-addressed store, hash-verified

1051}
1052
1053func testOffsetCommands(t *testing.T, expectedOffsetCommand ast.OffsetCommand, actualOffsetCommand *ast.OffsetCommand) {
1054
1055 if expectedOffsetCommand.Token.Type != actualOffsetCommand.Token.Type {
1056 t.Errorf("Expecting Token TokenType: %q, got: %q", expectedOffsetCommand.Token.Type, actualOffsetCommand.Token.Type)
1057 }
1058 if expectedOffsetCommand.Token.Literal != actualOffsetCommand.Token.Literal {
1059 t.Errorf("Expecting Token Literal: %s, got: %s", expectedOffsetCommand.Token.Literal, actualOffsetCommand.Token.Literal)
1060 }
1061 if expectedOffsetCommand.Count != actualOffsetCommand.Count {
1062 t.Errorf("Expecting Count to have value: %d, got: %d", expectedOffsetCommand.Count, actualOffsetCommand.Count)
1063 }
1064}
1065
1066func testJoinCommands(t *testing.T, expectedJoinCommand ast.JoinCommand, actualJoinCommand ast.JoinCommand) {
1067

Calls

no outgoing calls

Tested by

no test coverage detected