mirror of
https://github.com/caddyserver/caddy.git
synced 2024-12-23 22:27:38 -05:00
18 lines
394 B
Go
18 lines
394 B
Go
|
package setup
|
||
|
|
||
|
import (
|
||
|
"strings"
|
||
|
|
||
|
"github.com/mholt/caddy/config/parse"
|
||
|
"github.com/mholt/caddy/server"
|
||
|
)
|
||
|
|
||
|
// newTestController creates a new *Controller for
|
||
|
// the input specified, with a filename of "Testfile"
|
||
|
func newTestController(input string) *Controller {
|
||
|
return Controller{
|
||
|
Config: &server.Config{},
|
||
|
Dispenser: parse.NewDispenser("Testfile", strings.NewReader(input)),
|
||
|
}
|
||
|
}
|