(t *testing.T)
| 120 | } |
| 121 | |
| 122 | func TestIsCommitMode(t *testing.T) { |
| 123 | p := &Provider{mode: ModeCommit} |
| 124 | if !p.IsCommitMode() { |
| 125 | t.Error("expected IsCommitMode() = true for ModeCommit") |
| 126 | } |
| 127 | p.mode = ModeWorkspace |
| 128 | if p.IsCommitMode() { |
| 129 | t.Error("expected IsCommitMode() = false for ModeWorkspace") |
| 130 | } |
| 131 | } |
nothing calls this directly
no test coverage detected