Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/cli/cli
/ newTestConfig
Function
newTestConfig
internal/config/config_test.go:13–17 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
11
)
12
13
func
newTestConfig() *cfg {
14
return
&cfg{
15
cfg: ghConfig.ReadFromString(
""
),
16
}
17
}
18
19
func
TestNewConfigProvidesFallback(t *testing.T) {
20
var
spiedCfg *ghConfig.Config
Callers
11
TestGetOrDefaultApplicationDefaults
Function · 0.85
TestGetOrDefaultNonExistentKey
Function · 0.85
TestGetOrDefaultNonExistentHostSpecificKey
Function · 0.85
TestGetOrDefaultExistingTopLevelKey
Function · 0.85
TestGetOrDefaultExistingHostSpecificKey
Function · 0.85
TestGetOrDefaultHostnameSpecificKeyFallsBackToTopLevel
Function · 0.85
TestSetTopLevelKey
Function · 0.85
TestSetHostSpecificKey
Function · 0.85
TestSetUserSpecificKey
Function · 0.85
TestSetUserSpecificKeyNoUserPresent
Function · 0.85
TestTelemetry
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected