MCPcopy Create free account
hub / github.com/barnybug/cli53 / validateBindFile

Function validateBindFile

commands.go:258–270  ·  view source on GitHub ↗
(args importArgs)

Source from the content-addressed store, hash-verified

256}
257
258func validateBindFile(args importArgs) {
259 var reader io.Reader
260 if args.file == "-" {
261 reader = os.Stdin
262 } else {
263 f, err := os.Open(args.file)
264 fatalIfErr(err)
265 defer f.Close()
266 reader = f
267 }
268
269 parseBindFile(reader, args.file, "validate.test")
270}
271
272func importBind(ctx context.Context, args importArgs) {
273 zone := lookupZone(ctx, args.name)

Callers 1

MainFunction · 0.85

Calls 2

parseBindFileFunction · 0.85
fatalIfErrFunction · 0.70

Tested by

no test coverage detected