(t *testing.T, expectedOffsetCommand ast.OffsetCommand, actualOffsetCommand *ast.OffsetCommand)
| 1051 | } |
| 1052 | |
| 1053 | func 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 | |
| 1066 | func testJoinCommands(t *testing.T, expectedJoinCommand ast.JoinCommand, actualJoinCommand ast.JoinCommand) { |
| 1067 |
no outgoing calls
no test coverage detected