(t *testing.T)
| 99 | } |
| 100 | |
| 101 | func TestSuccess(t *testing.T) { |
| 102 | test := NewIntegrationTest(NewIntegrationTestArgs{ |
| 103 | Description: unitTestDescription, |
| 104 | Run: func(t *TestDriver, keys config.KeybindingConfig) { |
| 105 | t.press("a") |
| 106 | t.press("b") |
| 107 | t.click(0, 1) |
| 108 | t.click(2, 3) |
| 109 | }, |
| 110 | }) |
| 111 | driver := &fakeGuiDriver{} |
| 112 | test.Run(driver) |
| 113 | assert.EqualValues(t, []string{"a", "b"}, driver.pressedKeys) |
| 114 | assert.EqualValues(t, []coordinate{{0, 1}, {2, 3}}, driver.clickedCoordinates) |
| 115 | assert.Equal(t, "", driver.failureMessage) |
| 116 | } |
| 117 | |
| 118 | func TestGitVersionRestriction(t *testing.T) { |
| 119 | scenarios := []struct { |
nothing calls this directly
no test coverage detected