MCPcopy Index your code
hub / github.com/foxcpp/maddy / Dummy

Struct Dummy

framework/module/modules/dummy.go:37–37  ·  view source on GitHub ↗

Dummy is a struct that implements PlainAuth and DeliveryTarget interfaces but does nothing. Useful for testing. It is always registered under the 'dummy' name and can be used in both tests and the actual server code (but the latter is kinda pointless).

Source from the content-addressed store, hash-verified

35// It is always registered under the 'dummy' name and can be used in both tests
36// and the actual server code (but the latter is kinda pointless).
37type Dummy struct{ instName string }
38
39func (d *Dummy) AuthPlain(username, _ string) error {
40 return nil

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected