MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / TestInstrumentationConfigValidateBasic

Function TestInstrumentationConfigValidateBasic

config/config_test.go:186–193  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

184}
185
186func TestInstrumentationConfigValidateBasic(t *testing.T) {
187 cfg := TestInstrumentationConfig()
188 assert.NoError(t, cfg.ValidateBasic())
189
190 // tamper with maximum open connections
191 cfg.MaxOpenConnections = -1
192 assert.Error(t, cfg.ValidateBasic())
193}
194
195func TestGetDefaultDBDir(t *testing.T) {
196 // Define the expected value

Callers

nothing calls this directly

Calls 3

ValidateBasicMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected