批准 dataset 分类入库;SKIP LOCKED 分批;销毁默认 fail closed。restore 演练拒绝共享 env DSN。 Co-authored-by: Cursor <cursoragent@cursor.com>
23 lines
460 B
Go
23 lines
460 B
Go
package dataset
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestEightTracksPass(t *testing.T) {
|
|
path := "testdata/registry.json"
|
|
if _, err := os.Stat(path); err != nil {
|
|
path = filepath.Join("internal", "dataset", "testdata", "registry.json")
|
|
}
|
|
rs := RunEightTracks(context.Background(), path)
|
|
if err := AllTracksPass(rs); err != nil {
|
|
for _, r := range rs {
|
|
t.Logf("%s ok=%v %s", r.Name, r.OK, r.Detail)
|
|
}
|
|
t.Fatal(err)
|
|
}
|
|
}
|