blob: 76436776d49877209604f9439b8b28d823b35a9a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
//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"))
}
|