Minor changes

This commit is contained in:
Marc Ole Bulling
2021-04-19 23:29:12 +02:00
parent d8b7553aa5
commit 64020b58bb
3 changed files with 3 additions and 3 deletions

View File

@@ -1,9 +1,8 @@
#!/bin/sh
#Called by go generate
#Creates the coverage for the README.md file if gopherbadger is installed
cd ../../
#Grep is used to hide output
cd ../../
which gopherbadger > /dev/null
if [ $? -eq 0 ]; then
gopherbadger -png=false -md=README.md -tags "test" > /dev/null

View File

@@ -7,7 +7,7 @@ import (
)
func TestParseFlags(t *testing.T) {
os.Args = []string{"gokapi", "-v", "--reset-pw"}
os.Args = []string{"gokapi", "--version", "--reset-pw"}
flags := parseFlags()
test.IsEqualBool(t, flags.showVersion, true)
test.IsEqualBool(t, flags.resetPw, true)

View File

@@ -111,6 +111,7 @@ func (c *Cookie) toString() string {
return c.Name + "=" + c.Value
}
// PostBody contains mock key/value post data
type PostBody struct {
Key string
Value string