MCPcopy
hub / github.com/harness/harness / Validate

Method Validate

git/diff.go:43–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func (p DiffParams) Validate() error {
44 if err := p.ReadParams.Validate(); err != nil {
45 return err
46 }
47
48 if p.HeadRef == "" {
49 return errors.InvalidArgument("head ref cannot be empty")
50 }
51 return nil
52}
53
54func (s *Service) RawDiff(
55 ctx context.Context,

Callers

nothing calls this directly

Calls 2

InvalidArgumentFunction · 0.92
ValidateMethod · 0.65

Tested by

no test coverage detected