MCPcopy Index your code
hub / github.com/codegangsta/gin / Test_NewRunner

Function Test_NewRunner

lib/runner_test.go:14–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

12)
13
14func Test_NewRunner(t *testing.T) {
15 filename := "writing_output"
16 if runtime.GOOS == "windows" {
17 filename += ".bat"
18 }
19 bin := filepath.Join("test_fixtures", filename)
20
21 runner := gin.NewRunner(bin)
22
23 fi, _ := runner.Info()
24 expect(t, fi.Name(), filename)
25}
26
27func Test_Runner_Run(t *testing.T) {
28 bin := filepath.Join("test_fixtures", "writing_output")

Callers

nothing calls this directly

Calls 2

InfoMethod · 0.95
expectFunction · 0.85

Tested by

no test coverage detected