MCPcopy Create free account
hub / github.com/cloudflare/cfssl / TestReadStdin

Function TestReadStdin

cli/cli_test.go:90–104  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

88}
89
90func TestReadStdin(t *testing.T) {
91 fn, err := ReadStdin("./testdata/test.txt")
92 if err != nil {
93 t.Fatal(err)
94 }
95
96 if string(fn) != "This is a test file" {
97 t.Fatal(err)
98 }
99
100 _, err = ReadStdin("-")
101 if err != nil {
102 t.Fatal(err)
103 }
104}
105
106func TestPopFirstArg(t *testing.T) {
107 s, str, err := PopFirstArgument([]string{"a", "b", "c"})

Callers

nothing calls this directly

Calls 1

ReadStdinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…