From 0640fa76cdb38e6dcac8fde63f4c49ca4fd88b0d Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 21 Nov 2024 10:42:57 +0100 Subject: [PATCH] blueprint: trivial typo fixes --- pkg/blueprint/disk_customizations.go | 2 +- pkg/blueprint/filesystem_customizations_test.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/blueprint/disk_customizations.go b/pkg/blueprint/disk_customizations.go index 800063a2b9..09b92099fd 100644 --- a/pkg/blueprint/disk_customizations.go +++ b/pkg/blueprint/disk_customizations.go @@ -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 { diff --git a/pkg/blueprint/filesystem_customizations_test.go b/pkg/blueprint/filesystem_customizations_test.go index cb4860c525..fbb85f0817 100644 --- a/pkg/blueprint/filesystem_customizations_test.go +++ b/pkg/blueprint/filesystem_customizations_test.go @@ -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`, @@ -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`, },