We provide a set of basic tests for the different language bindings for the in-toto attestation layers.
The go packages go/v1
and go/predicates
provide a number of tests
for the statement and predicate layers.
To run all tests:
make go_test
Please use the standard Go testing package to write tests
for new predicates. For example tests, take a look at the *_test.go
files in the go/
directory tree.
At a minimum, we suggest testing JSON marshalling and unmarshalling of the Go language bindings.
The tests/python
directory contains a number of tests for the statement
and predicate layers.
To run all tests:
make py_test
Please use the standard Python unittest package to write tests
for new predicates. For example tests, take a look at the test_*.py
modules in the tests/python/
directory tree.
At a minimum, we suggest testing JSON marshalling and unmarshalling of the Python language bindings.