Update rove-server main with tests
This commit is contained in:
parent
1d2087e2b9
commit
97d3583384
3 changed files with 29 additions and 6 deletions
18
cmd/rove-server/main_test.go
Normal file
18
cmd/rove-server/main_test.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_InnerMain_Version(t *testing.T) {
|
||||
flag.Set("version", "1")
|
||||
InnerMain()
|
||||
flag.Set("version", "0")
|
||||
}
|
||||
|
||||
func Test_InnerMain_Quit(t *testing.T) {
|
||||
flag.Set("quit", "1")
|
||||
InnerMain()
|
||||
flag.Set("quit", "0")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue