pcmt/run_test.go
leo 3a2f85f683
All checks were successful
continuous-integration/drone/push Build is passing
feat: add license headers (+spdx id)
2023-05-20 20:15:57 +02:00

29 lines
442 B
Go

// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: AGPL-3.0-only
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()
}