pcmt/run_test.go
leo ed14e45969
All checks were successful
continuous-integration/drone/push Build is passing
go: add more tests (+return instead of exit)
2023-05-03 04:26:42 +02:00

26 lines
348 B
Go

package main
import (
"flag"
"testing"
)
func TestPrintLicense(t *testing.T) {
t.Parallel()
t.Log("print license and exit")
if err := flag.Set("license", "true"); err != nil {
t.Fatal("failed to set license flag")
}
err := run()
if err != nil {
t.Fatal(err)
}
}
func TestPrintHeader(t *testing.T) {
t.Parallel()
printHeader()
}