Plugin with an invalid Name (contains "." or starts with a hyphen) must abort with invalid_plugin_name. The dot ban is critical -- the "{plugin}.{hook}" namespace join would become ambiguous if dots were allowed inside Plugin.Name().
| 232 | // "{plugin}.{hook}" namespace join would become ambiguous if dots were |
| 233 | // allowed inside Plugin.Name(). |
| 234 | type badNamePlugin struct{ n string } |
| 235 | |
| 236 | func (p badNamePlugin) Name() string { return p.n } |
| 237 | func (p badNamePlugin) Version() string { return "1.0.0" } |
nothing calls this directly
no outgoing calls
no test coverage detected