summaryrefslogtreecommitdiff
path: root/man/man_test.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-06-01 18:47:44 +0200
committerewy <ewy0@protonmail.com>2026-06-01 18:47:44 +0200
commit46d032cd21b0e8e2c94a32333d3805ec76980cca (patch)
treefbb8aed5c5a501aca1309f62a9d4440ca949ce4c /man/man_test.go
parent7585a488b7b1e1812f7ebf50107139e2fd65f035 (diff)
add man(1) generation
Diffstat (limited to 'man/man_test.go')
-rw-r--r--man/man_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/man/man_test.go b/man/man_test.go
new file mode 100644
index 0000000..4b48c0f
--- /dev/null
+++ b/man/man_test.go
@@ -0,0 +1,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"))
+}