Qi Xiao
6e36058d0a
pkg/tt: Improve API.
...
- Use reflection to derive function name.
- Take test cases as variadic arguments, instead of requiring them to be wrapped
in a Table.
- Support naming test cases.
- Run test cases as subtests with t.Run.
2024-01-11 15:42:43 +00:00
Qi Xiao
0adf0ec147
Use the unix build tag.
...
The unix build tag is supported by Go 1.19.
2023-03-03 00:01:26 +00:00
Kurtis Rader
71cd3835bc
Don't dot import pkg/tt
...
Qualified imports of pkg/tt outnumber unqualified (27 to 24). Improve
consistency, and clarity, by changing the dot (unqualified) imports of
that package symbols to qualified.
2022-06-04 23:39:19 +01:00
Qi Xiao
f7cb556d9b
Require Go 1.18.
...
- Run "go fix" to remove legacy build tags
- Use staticcheck@master until it has a release that supports Go 1.18
- Turn off autocrlf for Windows tasks
2022-03-20 15:28:23 +00:00
Qi Xiao
d0be34c227
Run gofmt with Go 1.17.
...
This has created a lot of //go:build lines.
2021-08-23 00:19:49 +01:00
Qi Xiao
196eea21d4
Change module import path to src.elv.sh
2021-01-27 01:30:25 +00:00
Qi Xiao
bb122024dd
pkg/eval: Move test framework into new evaltest package.
2020-09-03 06:51:21 +01:00
Shengjing Zhu
45b12127f6
pkg/eval: Don't hardcode signal name in test
...
On gccgo signal name is capitalized.
2020-07-14 20:49:03 +01:00
Qi Xiao
e098617c28
pkg/eval: Fix test on BSD.
2020-03-30 23:48:22 +01:00
Qi Xiao
4f26803226
pkg/eval: Test all branches of ExternalCmdExit.Error.
...
This addresses #944 .
2020-03-30 23:39:03 +01:00
Qi Xiao
20afffed18
pkg/eval: Fix test on Windows.
2020-03-29 23:20:51 +01:00