droboticflow/internal/domain/workflow_annotation_test.go
2026-08-18 12:22:11 +08:00

20 lines
513 B
Go

package domain
import "testing"
func TestAnnotationReviewModeUsesNativeAnnotationGate(t *testing.T) {
node := WorkflowNode{Data: WorkflowNodeData{
Label: "逐段语义标注",
Category: "HUMAN",
Hyperparams: []HyperParam{
{Key: "REVIEW_MODE", Value: "annotation"},
},
}}
if !NodeRequiresAnnotation(node) {
t.Fatal("annotation review mode should be handled by the native annotation gate")
}
if NodeRequiresAudit(node) {
t.Fatal("annotation gate must not create a generic audit task")
}
}