Classify remaining D&D producer diagnostics
This commit is contained in:
@@ -44,9 +44,9 @@ func TestNormalizeAcceptedFixtures(t *testing.T) {
|
||||
t.Fatalf("normalized value = %#v, want %#v", result.Value, fixture.Output)
|
||||
}
|
||||
|
||||
gotReasonCodes := make([]string, 0, len(result.Warnings))
|
||||
for _, warning := range result.Warnings {
|
||||
gotReasonCodes = append(gotReasonCodes, warning.ReasonCode)
|
||||
gotReasonCodes := make([]string, 0, len(result.Diagnostics))
|
||||
for _, diagnostic := range result.Diagnostics {
|
||||
gotReasonCodes = append(gotReasonCodes, diagnostic.ReasonCode)
|
||||
}
|
||||
if !reflect.DeepEqual(gotReasonCodes, fixture.WarningReasonCodes) {
|
||||
t.Fatalf("warning reason codes = %#v, want %#v", gotReasonCodes, fixture.WarningReasonCodes)
|
||||
|
||||
Reference in New Issue
Block a user