diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-04-18 20:58:54 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-04-18 20:58:54 +0200 |
commit | ab409a3701bf59dd73dc1e0324376bdac8b6d74f (patch) | |
tree | 17fba0a6811534858300a550c06376b25f9644c6 /Testing Golang programs.md | |
parent | c8c774ad7c0d98def2e83647d4f635ee275b66de (diff) |
vault backup: 2025-04-18 20:58:54
Diffstat (limited to 'Testing Golang programs.md')
-rw-r--r-- | Testing Golang programs.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Testing Golang programs.md b/Testing Golang programs.md new file mode 100644 index 0000000..e9d48de --- /dev/null +++ b/Testing Golang programs.md @@ -0,0 +1,9 @@ +--- +tags: + - golang + - howto +--- +`go test` reads files ending with `_test.go`: 3 specialized functions: +- Test functions; names start with Test, 1 arg. \*testing.T +- Benchmarks: names start with Benchmarkt, 1 arg: \*testing.B +- Example functions: names start with Example
\ No newline at end of file |