1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Cosmetics

This commit is contained in:
Sascha L. Teichmann 2023-09-25 13:05:53 +02:00
parent 1f7d5ada14
commit 21fbd401b7
5 changed files with 36 additions and 45 deletions

View file

@ -92,8 +92,8 @@ func TestLoadToml(t *testing.T) {
t.Errorf("Failure: Didn't throw the correct " +
"error on trying to load nonexistant file")
}
if err := loadTOML(&cfg, "data/config_plus.toml"); err.Error() != "could not parse [\"surplus\"] "+
"from \"data/config_plus.toml\"" {
const errMsg = `could not parse ["surplus"] from "data/config_plus.toml"`
if err := loadTOML(&cfg, "data/config_plus.toml"); err.Error() != errMsg {
t.Errorf("Failure: Succeeded in parsing nonexistant parameter")
}
if err := loadTOML(&cfg, "data/config.toml"); err != nil {