MCPcopy Create free account
hub / github.com/GetStream/stream-cli / getTempFile

Function getTempFile

pkg/config/config_test.go:12–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func getTempFile(t *testing.T) *os.File {
13 tmpFile, err := os.CreateTemp("", "*.yaml")
14 require.NoError(t, err)
15 t.Cleanup(func() {
16 _ = os.Remove(tmpFile.Name())
17 })
18 return tmpFile
19}
20
21func TestAddNewConfig(t *testing.T) {
22 tests := []struct {

Callers 3

TestAddNewConfigFunction · 0.85
TestRemoveConfigFunction · 0.85
TestSetDefaultFunction · 0.85

Calls 1

RemoveMethod · 0.80

Tested by

no test coverage detected