assert line 0 with a file counts as a real source location
This commit is contained in:
@@ -381,8 +381,8 @@ func TestNormalizeKeepsMissingSourceDistinctFromLineZero(t *testing.T) {
|
||||
t.Errorf("manifest location lost: %+v", anchor)
|
||||
}
|
||||
|
||||
zero := Resource{Type: "File", Title: "/a", Line: intPtr(0)}
|
||||
if !zero.HasSource() && zero.File != "" {
|
||||
zero := Resource{Type: "File", Title: "/a", File: "site.pp", Line: intPtr(0)}
|
||||
if !zero.HasSource() {
|
||||
t.Error("line 0 with a file is a real location")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user