(t *testing.T)
| 16 | } |
| 17 | |
| 18 | func TestDiffMap_Get(t *testing.T) { |
| 19 | dm := NewDiffMap(map[string]string{"x.go": "content"}) |
| 20 | |
| 21 | v, ok := dm.Get("x.go") |
| 22 | if !ok || v != "content" { |
| 23 | t.Errorf("Get(x.go) = %q, %v; want 'content', true", v, ok) |
| 24 | } |
| 25 | |
| 26 | _, ok = dm.Get("missing.go") |
| 27 | if ok { |
| 28 | t.Error("Get(missing.go) should return false") |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func TestFileReadDiffProvider_Execute(t *testing.T) { |
| 33 | dm := NewDiffMap(map[string]string{ |
nothing calls this directly
no test coverage detected