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
Kurtis Rader
a943dc764a
Improve navigation mode corner cases
...
There are some Navigation mode corner cases whose current behavior is
surprising. Such as inserting a space before the filename when the space
isn't wanted or redundant. Also, selecting an empty directory and pressing
Enter should insert nothing rather than an empty string.
Fixes #1169
2020-11-07 13:17:00 -05: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
Qi Xiao
8f410a24be
pkg/util: Move environment variable names to a new package.
...
Also document that this package should be broken up.
2020-08-16 14:12:48 +01:00
Kurtis Rader
19f315e28a
Replace "PWD" literals with a constant
2020-08-16 14:05:13 +01:00
Qi Xiao
33da89f34f
pkg/eval: Clean up API.
...
Unexport some of the test utilities, and remove unused AddDirer.
2020-04-10 18:10:42 +01:00
Qi Xiao
e45fdf7228
Move all libraries to new pkg/.
2019-12-23 20:00:59 +00:00