TheDonDope / govalues

Test your political alignment and simulate various constellations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

govalues

Building

  • Vet the package, make sure the tests run:
$ go vet ./... && go clean -testcache && go test ./...
?       github.com/TheDonDope/govalues/cmd/govalues     [no test files]
?       github.com/TheDonDope/govalues/pkg/politics     [no test files]
?       github.com/TheDonDope/govalues/pkg/simulation   [no test files]
  • Build the main command:
$ go build ./...
# No output on sucess

Attention: The built binary is not (yet) ignored by git, so be careful to not commit your binaries to the repository.

Testing

  • Run the testsuite with coverage enabled:
$ go test ./... -coverprofile=coverage.out
?       github.com/TheDonDope/govalues/cmd/govalues     [no test files]
?       github.com/TheDonDope/govalues/pkg/politics     [no test files]
?       github.com/TheDonDope/govalues/pkg/simulation   [no test files]
  • Open the results in the browser:
$ go tool cover -html=coverage.out
# Opens Browser

Output files are ignored by git, so don't you even worry :)

Running

  • Run the govalues command:
$ go run ./cmd/govalues/main.go
# Log output
  • Run the govalues binary:
$ ./govalues
# Log output

About

Test your political alignment and simulate various constellations.


Languages

Language:Go 93.7%Language:Python 6.3%