MCPcopy Index your code
hub / github.com/go-git/go-git / Validate

Method Validate

config/url.go:28–34  ·  view source on GitHub ↗

Validate validates fields of branch

()

Source from the content-addressed store, hash-verified

26
27// Validate validates fields of branch
28func (b *URL) Validate() error {
29 if b.InsteadOf == "" {
30 return errURLEmptyInsteadOf
31 }
32
33 return nil
34}
35
36const (
37 insteadOfKey = "insteadOf"

Callers 15

TestValidateInsteadOfMethod · 0.95
TestCloneMirrorMethod · 0.45
InitWithOptionsFunction · 0.45
CreateRemoteMethod · 0.45
CreateRemoteAnonymousMethod · 0.45
CreateBranchMethod · 0.45
CreateTagMethod · 0.45
createTagObjectMethod · 0.45
cloneMethod · 0.45
FetchContextMethod · 0.45
PushContextMethod · 0.45

Calls

no outgoing calls

Tested by 3

TestValidateInsteadOfMethod · 0.76
TestCloneMirrorMethod · 0.36
TestRefSpecIsValidMethod · 0.36