cscli hubtest whitelist (#2479)

* Initial tests

* Always print whitelist as we can compare if we mess up the opposite way
This commit is contained in:
Laurence Jones 2023-09-20 16:42:19 +01:00 committed by GitHub
parent e4dcdd2572
commit 37c0c067a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,6 +255,10 @@ func (p *ParserAssert) AutoGenParserAssert() string {
ret += base + line
}
}
ret += fmt.Sprintf(`results["%s"]["%s"][%d].Evt.Whitelisted == %t`+"\n", stage, parser, pidx, result.Evt.Whitelisted)
if result.Evt.WhitelistReason != "" {
ret += fmt.Sprintf(`results["%s"]["%s"][%d].Evt.WhitelistReason == "%s"`+"\n", stage, parser, pidx, Escape(result.Evt.WhitelistReason))
}
}
}
}