MCPcopy Create free account
hub / github.com/alibaba/open-code-review / TestIsCommitMode

Function TestIsCommitMode

internal/diff/gitignore_test.go:122–131  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

120}
121
122func 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}

Callers

nothing calls this directly

Calls 1

IsCommitModeMethod · 0.95

Tested by

no test coverage detected