Lines Matching refs:tempName
53 tempName := tempFileName("", "zap-open-test")
54 assert.False(t, fileExists(tempName))
55 require.True(t, strings.HasPrefix(tempName, "/"), "Expected absolute temp file path.")
63 {[]string{tempName}, nil},
64 {[]string{"file://" + tempName}, nil},
65 {[]string{"file://localhost" + tempName}, nil},
69 paths: []string{"stdout", "/foo/bar/baz", tempName, "file:///baz/quux"},
77 {[]string{"file://host01.test.com" + tempName}, []string{"empty or use localhost"}},
78 {[]string{"file://rms@localhost" + tempName}, []string{"user and password not allowed"}},
79 {[]string{"file://localhost" + tempName + "#foo"}, []string{"fragments not allowed"}},
80 {[]string{"file://localhost" + tempName + "?foo=bar"}, []string{"query parameters not allowed"}},
81 {[]string{"file://localhost:8080" + tempName}, []string{"ports not allowed"}},
100 assert.True(t, fileExists(tempName))
101 os.Remove(tempName)