Skip to content

Commit

Permalink
blueprint: trivial typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Nov 22, 2024
1 parent 1621f4d commit 80e8651
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkg/blueprint/disk_customizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func decodePlain(v *PartitionCustomization, data []byte) error {
return nil
}

// descodeBtrfs decodes the data into a struct that only embeds the
// decodeBtrfs decodes the data into a struct that only embeds the
// BtrfsVolumeCustomization with DisallowUnknownFields. This ensures that when
// the type is btrfs, none of the fields for plain or lvm are used.
func decodeBtrfs(v *PartitionCustomization, data []byte) error {
Expand Down
8 changes: 4 additions & 4 deletions pkg/blueprint/filesystem_customizations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ func TestFilesystemCustomizationUnmarshalTOMLUnhappy(t *testing.T) {
err: `toml: line 0: TOML unmarshal: mountpoint must be string, got "42" of type int64`,
},
{
name: "misize nor string nor int",
name: "minsize nor string nor int",
input: `mountpoint="/"
minsize = true`,
err: `toml: line 0: TOML unmarshal: error decoding minsize value for mountpoint "/": failed to convert value "true" to number`,
},
{
name: "misize not parseable",
name: "minsize not parseable",
input: `mountpoint="/"
minsize = "20 KG"`,
err: `toml: line 0: TOML unmarshal: error decoding minsize value for mountpoint "/": unknown data size units in string: 20 KG`,
Expand Down Expand Up @@ -84,12 +84,12 @@ func TestFilesystemCustomizationUnmarshalJSONUnhappy(t *testing.T) {
err: `JSON unmarshal: mountpoint must be string, got "42" of type float64`,
},
{
name: "misize nor string nor int",
name: "minsize nor string nor int",
input: `{"mountpoint":"/", "minsize": true}`,
err: `JSON unmarshal: error decoding minsize value for mountpoint "/": failed to convert value "true" to number`,
},
{
name: "misize not parseable",
name: "minsize not parseable",
input: `{ "mountpoint": "/", "minsize": "20 KG"}`,
err: `JSON unmarshal: error decoding minsize value for mountpoint "/": unknown data size units in string: 20 KG`,
},
Expand Down

0 comments on commit 80e8651

Please sign in to comment.