nebula/cmd/nebula-cert/passwords_test.go

11 lines
176 B
Go

package main
type StubPasswordReader struct {
password []byte
err error
}
func (pr *StubPasswordReader) ReadPassword() ([]byte, error) {
return pr.password, pr.err
}