(t *testing.T, expectedLimitCommand ast.LimitCommand, actualLimitCommand *ast.LimitCommand)
| 1038 | } |
| 1039 | |
| 1040 | func 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 | |
| 1053 | func testOffsetCommands(t *testing.T, expectedOffsetCommand ast.OffsetCommand, actualOffsetCommand *ast.OffsetCommand) { |
| 1054 |
no outgoing calls
no test coverage detected