MCPcopy
hub / github.com/caddyserver/caddy / parseOne

Method parseOne

caddyconfig/caddyfile/parse.go:141–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

139}
140
141func (p *parser) parseOne() error {
142 p.block = ServerBlock{}
143 return p.begin()
144}
145
146func (p *parser) begin() error {
147 if len(p.tokens) == 0 {

Callers 4

parseAllMethod · 0.95
TestParseOneAndImportFunction · 0.80
TestRecursiveImportFunction · 0.80
TestDirectiveImportFunction · 0.80

Calls 1

beginMethod · 0.95

Tested by 3

TestParseOneAndImportFunction · 0.64
TestRecursiveImportFunction · 0.64
TestDirectiveImportFunction · 0.64