MCPcopy Create free account
hub / github.com/git-bug/git-bug / Validate

Method Validate

bridge/core/auth/login.go:52–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (lp *Login) Validate() error {
53 err := lp.credentialBase.validate()
54 if err != nil {
55 return err
56 }
57 if lp.Login == "" {
58 return fmt.Errorf("missing login")
59 }
60 return nil
61}
62
63func (lp *Login) toConfig() map[string]string {
64 return map[string]string{

Callers

nothing calls this directly

Calls 2

ErrorfMethod · 0.80
validateMethod · 0.45

Tested by

no test coverage detected