Mikel Ward
8796233de4
Make Concat return a new globPattern.
...
I don't know if this is fully sufficient, but it seems to fix the specific test
case mentioned.
Fixes #1245
2023-07-16 18:28:32 +01:00
Qi Xiao
4afbb71c07
Move pkg/testutil/must.go to a new pkg/must.
2022-06-20 20:29:14 +01:00
Qi Xiao
8713cb5b1c
pkg/eval: Slightly improve coverage of glob.go.
2021-09-10 19:08:22 +01:00
Qi Xiao
6b6d3d5a95
pkg/eval: Improve coverage of glob.go.
2021-09-10 18:57:11 +01:00
Qi Xiao
e9d328aa16
Make use of (*testing.T).Cleanup for test cleanups.
...
This allows turning the following pattern in tests:
value, cleanup := setupSomething()
defer cleanup()
into the following:
value := setupSomething(t)
2021-08-06 23:21:23 +01:00
Qi Xiao
196eea21d4
Change module import path to src.elv.sh
2021-01-27 01:30:25 +00:00
Qi Xiao
f3c2185dae
pkg/eval/evaltest: Move Must* functions to the testutil package.
...
Also exclude those functions from test coverage calculation.
2020-09-04 21:57:20 +01:00
Qi Xiao
90a99c1792
pkg/eval/evaltest: Consolidate all the Throws* methods into one.
2020-09-04 20:31:47 +01:00
Qi Xiao
bb122024dd
pkg/eval: Move test framework into new evaltest package.
2020-09-03 06:51:21 +01:00
Qi Xiao
48919bcb24
pkg/: Move test utilities from util/ to testutil/.
2020-09-03 04:55:16 +01:00
Kurtis Rader
e8a8ee04b8
Add a wildcard [type:xxx] modifier
...
This allows filtering the wildcard expansion by path type. For example,
whether the path is a directory, regular file, or something else. So
instead of `find . -type f` you can now do `**[type:file]`.
Resolves #1015
2020-06-28 01:25:32 +01:00
Qi Xiao
e8368127b7
pkg/eval: Add more tests against glob.go.
...
This addresses #944 .
2020-04-17 00:47:00 +01:00
Qi Xiao
fbc18ba55d
pkg/eval: Rewrite glob tests.
2020-04-17 00:40:47 +01:00