mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-03-13 13:39:02 -05:00
Minor changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user