-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Marcela Melara <[email protected]>
- Loading branch information
1 parent
4cda93e
commit f986493
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# in-toto attestation implementation tests | ||
|
||
We provide a set of basic tests for the different language | ||
bindings for the in-toto attestation layers. | ||
|
||
## Testing the Go bindings | ||
|
||
The go packages `go/v1` and `go/predicates` provide a number of tests | ||
for the statement and predicate layers. | ||
|
||
### Running the Go tests | ||
|
||
To run all tests: | ||
|
||
```shell | ||
$ make go_test | ||
``` | ||
|
||
### Writing new Go tests | ||
|
||
Please use the standard [Golang 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters