MCPcopy Create free account
hub / github.com/InferCore/InferCore / TestLoad_LoadtestProfileYAML

Function TestLoad_LoadtestProfileYAML

internal/config/config_test.go:10–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestLoad_LoadtestProfileYAML(t *testing.T) {
11 path := filepath.Join("..", "..", "configs", "infercore.loadtest.yaml")
12 cfg, err := Load(path)
13 if err != nil {
14 t.Fatalf("load infercore.loadtest.yaml: %v", err)
15 }
16 if cfg.Routing.DefaultBackend != "small-model" {
17 t.Fatalf("unexpected default backend: %s", cfg.Routing.DefaultBackend)
18 }
19 if cfg.Tenants[0].RateLimitRPS != 0 {
20 t.Fatalf("loadtest profile expects rate_limit_rps 0, got %d", cfg.Tenants[0].RateLimitRPS)
21 }
22}
23
24func TestLoad_ValidConfig(t *testing.T) {
25 cfgPath := writeTempConfig(t, `

Callers

nothing calls this directly

Calls 1

LoadFunction · 0.85

Tested by

no test coverage detected