A path that holds an empty diff is still a path the message can offer.
(t *testing.T)
| 54 | |
| 55 | // A path that holds an empty diff is still a path the message can offer. |
| 56 | func TestDiffMapPathsKeepsEmptyDiff(t *testing.T) { |
| 57 | dm := NewDiffMap(map[string]string{"empty.go": ""}) |
| 58 | if _, ok := dm.Get("empty.go"); !ok { |
| 59 | t.Fatalf("an empty diff is still a present path; paths: %v", dm.Paths()) |
| 60 | } |
| 61 | } |
nothing calls this directly
no test coverage detected