mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
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.
23 lines
350 B
Go
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)
|
|
}
|