diff --git a/go/internal/api/routes/zz_commit_conflict_gate_test.go b/go/internal/api/routes/zz_commit_conflict_gate_test.go index 063542d..6381fd1 100644 --- a/go/internal/api/routes/zz_commit_conflict_gate_test.go +++ b/go/internal/api/routes/zz_commit_conflict_gate_test.go @@ -78,8 +78,10 @@ func (mockGraph) Navigate(entity string, maxHops int, namespace string, relation func (mockGraph) NavigateBiDir(source, target string, maxHops int, namespace string, relationFilter []string) ([]map[string]interface{}, error) { return nil, nil } -func (mockGraph) Query(entity, relation, namespace string) []map[string]interface{} { return nil } -func (mockGraph) AllEdges() []map[string]interface{} { return nil } +func (mockGraph) Query(entity, relation, namespace string) []map[string]interface{} { + return nil +} +func (mockGraph) AllEdges(namespace string) []governance.GraphEdge { return nil } func (mockGraph) SearchNodes(label string, namespace string) []map[string]interface{} { return nil } diff --git a/go/internal/api/routes/zz_ns_probe_test.go b/go/internal/api/routes/zz_ns_probe_test.go new file mode 100644 index 0000000..a519b16 --- /dev/null +++ b/go/internal/api/routes/zz_ns_probe_test.go @@ -0,0 +1,10 @@ +package routes + +import "testing" + +func TestClassifyNamespaceForMuchen(t *testing.T) { + for _, c := range []string{"牧尘在招商局工作", "牧尘不在招商局工作", "画像规则: 牧尘在招商局工作"} { + got := classifyNamespace("profiles", "a06", c) + t.Logf("content=%q → namespace=%q", c, got) + } +}