Add test case for comments lines in config

This commit is contained in:
Ray Miller 2023-05-10 17:00:37 +01:00
parent 98a35831f0
commit a376658386

View file

@ -29,6 +29,10 @@ func TestParseConfig(t *testing.T) {
input: "version_prefix=v\ngit_sign=t\n",
expect: config{versionPrefix: "v", sign: true},
},
{
input: "# My config\nversion_prefix=v\ngit_sign=t\n",
expect: config{versionPrefix: "v", sign: true},
},
{
input: "VERSION_PREFIX=v\nGIT_SIGN=false\n",
expect: config{versionPrefix: "v", sign: false},