Why: Downstream products must extend the base through a public package and host API instead of editing internal code. Evidence: go test ./... passed, including plugin v2 assets, sidecar startup, migration v13, pending confirms, HITL timeout, hash embedder, command pairs, and the extension surface snapshot. Impact: apiVersion 2.0-experimental rejects empty network allowlists for declarative HTTP. Hash embeddings stay opt-in via models.embedding.provider=hash. Plugin secrets resolve per owner at execution time. Refs: docs/proposals/2026-10-01-plugin-contract-v2.md Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
322 B
Go
20 lines
322 B
Go
package evalgold
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestGoldenSet(t *testing.T) {
|
|
cases, err := Load(filepath.Join("testdata", "golden.json"))
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
if len(cases) < 3 {
|
|
t.Fatalf("golden set too small: %d", len(cases))
|
|
}
|
|
if msg := Check(cases); msg != "" {
|
|
t.Fatal(msg)
|
|
}
|
|
}
|