MCPcopy
hub / github.com/livekit/livekit / TestShouldReturnErrorIfConfigFileDoesNotExist

Function TestShouldReturnErrorIfConfigFileDoesNotExist

cmd/server/main_test.go:51–55  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

49}
50
51func TestShouldReturnErrorIfConfigFileDoesNotExist(t *testing.T) {
52 configBody, err := getConfigString("notExistingFile", "")
53 require.Error(t, err)
54 require.Empty(t, configBody)
55}
56
57func writeConfigFile(test testStruct, t *testing.T) {
58 if test.configFileName != "" {

Callers

nothing calls this directly

Calls 2

getConfigStringFunction · 0.85
EmptyMethod · 0.80

Tested by

no test coverage detected