blob: 4b48c0f8fbb6498e9b80fc55940a5719cedd2a43 (
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.man"))
}
|