MCPcopy Create free account
hub / github.com/alibaba/open-code-review / validateAudience

Function validateAudience

cmd/opencodereview/shared_flags.go:96–103  ·  view source on GitHub ↗
(audience string)

Source from the content-addressed store, hash-verified

94}
95
96func validateAudience(audience string) error {
97 switch audience {
98 case "human", "agent":
99 return nil
100 default:
101 return fmt.Errorf("invalid --audience value %q: must be 'human' or 'agent'", audience)
102 }
103}
104
105func validateReviewOptions(opts *reviewOptions) error {
106 if err := validateDiffMode(opts.from, opts.to, opts.commit); err != nil {

Callers 2

validateReviewOptionsFunction · 0.85
validateScanOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected