(t *testing.T)
| 49 | } |
| 50 | |
| 51 | func TestWorkingSet_Remove(t *testing.T) { |
| 52 | ws := NewWorkingSet() |
| 53 | ws.Touch("a.go", 1, false, 0) |
| 54 | ws.Touch("b.go", 2, false, 0) |
| 55 | ws.Remove("a.go") |
| 56 | |
| 57 | if ws.Size() != 1 { |
| 58 | t.Errorf("expected 1 file after remove, got %d", ws.Size()) |
| 59 | } |
| 60 | if _, ok := ws.Files["a.go"]; ok { |
| 61 | t.Error("a.go should have been removed") |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func TestWorkingSet_ActiveFiles(t *testing.T) { |
| 66 | ws := NewWorkingSet() |
nothing calls this directly
no test coverage detected