mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 11:55:40 +01:00
Cosmetics
This commit is contained in:
parent
1f7d5ada14
commit
21fbd401b7
5 changed files with 36 additions and 45 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue