blueprint: tag all struct fields for toml
This is repetitive, but there doesn't seem to be another way to export lower-case field names.
This commit is contained in:
parent
94bfcc518c
commit
b1c65bb671
3 changed files with 51 additions and 52 deletions
|
|
@ -160,8 +160,6 @@ func TestBlueprintsInfoToml(t *testing.T) {
|
|||
t.Fatalf("error decoding toml file: %v", err)
|
||||
}
|
||||
|
||||
t.Logf("%v", got)
|
||||
|
||||
expected := blueprint.Blueprint{
|
||||
Name: "test1",
|
||||
Description: "Test",
|
||||
|
|
@ -169,8 +167,6 @@ func TestBlueprintsInfoToml(t *testing.T) {
|
|||
Packages: []blueprint.Package{
|
||||
{"httpd", "2.4.*"},
|
||||
},
|
||||
Groups: []blueprint.Group{},
|
||||
Modules: []blueprint.Package{},
|
||||
}
|
||||
if diff := cmp.Diff(got, expected); diff != "" {
|
||||
t.Fatalf("received unexpected blueprint: %s", diff)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue