//go:build test package main import ( "github.com/spf13/pflag" "github.com/stretchr/testify/assert" "path/filepath" "testing" ) func TestMan(t *testing.T) { d := t.TempDir() err := pflag.Set(manFlagName, d) assert.NoError(t, err) assert.NotPanics(t, main) assert.FileExists(t, filepath.Join(d, "pik.1.man")) }