mirror of
https://github.com/caddyserver/caddy.git
synced 2025-11-01 05:41:15 +00:00
Add some tests and fix vet warning
This commit is contained in:
parent
e40bbecb16
commit
ad3d408067
2 changed files with 153 additions and 45 deletions
|
|
@ -45,6 +45,6 @@ func (r Regexp) MatchString(thread *starlark.Thread, fn *starlark.Builtin, args
|
|||
|
||||
func (r Regexp) Freeze() {}
|
||||
func (r Regexp) Hash() (uint32, error) { return 0, fmt.Errorf("unhashable: Regexp") }
|
||||
func (r Regexp) String() string { return fmt.Sprint(r) }
|
||||
func (r Regexp) String() string { return "Regexp" }
|
||||
func (r Regexp) Type() string { return "Regexp" }
|
||||
func (r Regexp) Truth() starlark.Bool { return true }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue