1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-17 14:37:02 +00:00
Files
go-chasquid-smtp/cmd/spf-check/spf-check.go
Alberto Bertogli bb90274edd test: Add tools to generate test coverage information
This patch adds some tooling and scripts to generate test coverage
information.

Unfortunately, this involves some hacks as Go does not have support for
generating coverage-enabled binaries, or merging coverage reports; but
overall it's not very intrusive.
2018-03-02 19:37:37 +00:00

23 lines
350 B
Go

// Command line tool for playing with the SPF library.
//
// Not for use in production, just development and experimentation.
// +build !coverage
package main
import (
"flag"
"fmt"
"net"
"blitiri.com.ar/go/spf"
)
func main() {
flag.Parse()
r, err := spf.CheckHost(net.ParseIP(flag.Arg(0)), flag.Arg(1))
fmt.Println(r)
fmt.Println(err)
}