diff options
| author | Shulhan <ms@kilabit.info> | 2022-02-06 14:19:15 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-02-06 14:19:15 +0700 |
| commit | f6326eebcc38daf25636bc4f32ab9dfc76ba6d79 (patch) | |
| tree | 428614517a87256d08de31e33a2189db8f815225 /lib/ini/reader_test.go | |
| parent | bc9beab883833279580319eb7670cbbc21cd628f (diff) | |
| download | pakakeh.go-f6326eebcc38daf25636bc4f32ab9dfc76ba6d79.tar.xz | |
lib/ini: realign all structs
Changes,
* reader: from 184 to 168 bytes (-16 bytes)
* Section: from 104 to 88 bytes (-16 bytes)
* structField: from 120 to 112 bytes (-8 bytes)
* variable: from 120 to 104 bytes (-16 bytes)
Diffstat (limited to 'lib/ini/reader_test.go')
| -rw-r--r-- | lib/ini/reader_test.go | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/lib/ini/reader_test.go b/lib/ini/reader_test.go index e1d3a4e4..5e71b0d5 100644 --- a/lib/ini/reader_test.go +++ b/lib/ini/reader_test.go @@ -13,14 +13,15 @@ import ( func TestParseSectionHeader(t *testing.T) { cases := []struct { - desc string - in string expErr error - expMode lineMode expFormat string expSecName string expSubName string expComment string + + desc string + in string + expMode lineMode }{{ desc: "With empty input", expErr: errBadConfig, @@ -124,13 +125,15 @@ func TestParseSectionHeader(t *testing.T) { func TestParseSubsection(t *testing.T) { cases := []struct { - desc string - in string expErr error - expMode lineMode expFormat string expSub string expComment string + + desc string + in string + + expMode lineMode }{{ desc: "With empty input", expErr: errBadConfig, @@ -178,14 +181,15 @@ func TestParseSubsection(t *testing.T) { func TestParseVariable(t *testing.T) { cases := []struct { - desc string - in []byte expErr error - expMode lineMode expFormat string expComment string expKey string expValue string + + desc string + in []byte + expMode lineMode }{{ desc: "Empty", expErr: errVarNameInvalid, @@ -346,12 +350,13 @@ func TestParseVariable(t *testing.T) { func TestParseVarValue(t *testing.T) { cases := []struct { - desc string - in []byte expErr error expFormat string expValue string expComment string + + desc string + in []byte }{{ desc: `Empty input`, expErr: io.EOF, |
