mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-03 19:17:29 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			395 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			395 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)),
 | 
						|
	}
 | 
						|
}
 |