elvish/pkg/eval
Kurtis Rader 358e52a7f5 Make testing compilation errors more deterministic
A year ago I submitted a change to replace AnyError with tests for specific
errors (see https://github.com/elves/elvish/commit/87656c99).  This does
something similar for DoesNotCompile. This ensures the test does what
is implied and makes correlating specific unit tests with compilation
errors easier.

This includes a couple of changes to compilation error messages to improve
readability (IMHO) but those are not the primary purpose of this change.

Related #1560
2022-11-20 16:33:29 +00:00
..
errs pkg/eval/errs: Fix misleading message in OutOfRange.Error. 2022-11-20 15:11:57 +00:00
evaltest Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
vals Some minor documentation fixes 2022-08-29 12:04:59 +01:00
vars pkg/eval/vars: Deexport EnvVariable, use Unset/IsSet via interface 2022-06-05 21:47:51 +01:00
benchmarks_test.go pkg/eval: Reorganize benchmarks. 2021-12-02 00:30:01 +00:00
builtin_fn_cmd_test.go pkg/eval: Test the exit command by faking os.Exit. 2022-06-23 20:25:01 +01:00
builtin_fn_cmd_unix_test.go Require Go 1.18. 2022-03-20 15:28:23 +00:00
builtin_fn_cmd_unix.go pkg/shell: Add more daemon-related tests. 2022-06-19 21:45:36 +01:00
builtin_fn_cmd_windows.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
builtin_fn_cmd.go pkg/eval: Test the exit command by faking os.Exit. 2022-06-23 20:25:01 +01:00
builtin_fn_container_test.go Fixup for #1588 2022-08-29 12:29:24 +01:00
builtin_fn_container.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
builtin_fn_debug.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
builtin_fn_env_test.go Remove most uses of the legacy assignment syntax. 2022-01-03 00:47:41 +00:00
builtin_fn_env.go Document relationship between *-env commands and E: namespace. 2022-05-22 20:13:17 +01:00
builtin_fn_flow_test.go Add a new "defer" command. 2022-01-05 00:12:35 +00:00
builtin_fn_flow.go Add missing "usage" text for three commands 2022-08-29 12:10:31 +01:00
builtin_fn_fs_test.go Move pkg/testutil/must.go to a new pkg/must. 2022-06-20 20:29:14 +01:00
builtin_fn_fs.go Remove use of "e.g.," and "i.e.,". 2022-11-20 15:44:29 +00:00
builtin_fn_io_test.go Clarify error message when writing values to port not supporting it. 2022-06-07 20:29:34 +01:00
builtin_fn_io.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
builtin_fn_misc_test.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
builtin_fn_misc_unix_test.go Use consistent pattern for mutating variables in tests. 2022-06-19 23:56:18 +01:00
builtin_fn_misc.go Fixup for #1591. 2022-11-20 15:13:25 +00:00
builtin_fn_num_test.go Add -randseed to set RNG seed. 2022-08-07 11:32:52 +01:00
builtin_fn_num.go Improve documentation for %. 2022-08-29 12:09:43 +01:00
builtin_fn_pred_test.go Fixup for #1588 2022-08-29 12:29:24 +01:00
builtin_fn_pred.go Fixup for #1588 2022-08-29 12:29:24 +01:00
builtin_fn_str_test.go Replace AnyError in tests with a specific error 2021-12-13 01:08:24 +00:00
builtin_fn_str.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
builtin_fn_stream_test.go Fixup for #1588 2022-08-29 12:29:24 +01:00
builtin_fn_stream.go Fix elvdoc for compact. 2022-08-29 11:08:19 +01:00
builtin_fn_styled_test.go pkg/ui: Make styled text context-insensitive, and remove the "default" color. 2022-07-24 14:31:02 +01:00
builtin_fn_styled.go Rewrite elvdoc for styled and styled-segment. 2022-07-24 14:44:16 +01:00
builtin_ns_test.go Fix use of the builtin module via explicit "builtin". 2021-10-28 22:28:13 +01:00
builtin_ns.go Some minor documentation fixes 2022-08-29 12:04:59 +01:00
builtin_special_test.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
builtin_special.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
callable.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
chdir_test.go Move pkg/testutil/must.go to a new pkg/must. 2022-06-20 20:29:14 +01:00
closure_test.go Remove most uses of the legacy assignment syntax. 2022-01-03 00:47:41 +00:00
closure.go pkg/eval/vals: Replace MakeListFromStrings with a generic MakeListSlice. 2022-06-17 16:50:38 +01:00
compile_effect_test.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
compile_effect_unix_test.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
compile_effect.go Clarify error message when writing values to port not supporting it. 2022-06-07 20:29:34 +01:00
compile_lvalue.go pkg/eval: Check whether variable name is empty when parsing lvalue. 2022-10-03 04:34:05 +01:00
compile_value_test.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
compile_value.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
compiler_test.go Make parse.Source naming more consistent 2022-05-29 17:36:29 +01:00
compiler.go Properly deprecate float64. 2022-04-09 11:45:15 +01:00
deprecation.go
eval_test.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
eval.go Some minor documentation fixes 2022-08-29 12:04:59 +01:00
exception_test.go Don't dot import pkg/tt 2022-06-04 23:39:19 +01:00
exception_unix_test.go Don't dot import pkg/tt 2022-06-04 23:39:19 +01:00
exception.go Some minor documentation fixes 2022-08-29 12:04:59 +01:00
external_cmd_test.go evaltest: Check that stderr is empty if PrintsStderrWith is not called. 2022-03-20 09:50:05 +00:00
external_cmd_unix_internal_test.go Don't dot import pkg/testutil 2022-06-04 23:39:19 +01:00
external_cmd_unix_test.go Remove use of "e.g.," and "i.e.,". 2022-11-20 15:44:29 +00:00
external_cmd_unix.go Require Go 1.18. 2022-03-20 15:28:23 +00:00
external_cmd_windows_test.go Fix some lint warnings found on Windows. 2022-06-05 22:01:16 +01:00
external_cmd_windows.go Detect and suppress SIGPIPE caused by the next command in a pipeline exiting early. 2021-05-20 00:10:17 +01:00
external_cmd.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
frame.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
fuzz_test.go Remove go1.18 build tags as 1.18 is required. 2022-08-08 12:29:33 +01:00
glob_test.go Move pkg/testutil/must.go to a new pkg/must. 2022-06-20 20:29:14 +01:00
glob.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
go_fn_internal_test.go pkg/eval: Convert elements of slice return value from a GoFn to individual outputs. 2021-10-03 16:34:52 +01:00
go_fn_test.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
go_fn.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
interrupts.go Use buffered channels with signal.Notify. 2021-08-23 00:22:11 +01:00
node_utils.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
ns_test.go Make testing compilation errors more deterministic 2022-11-20 16:33:29 +00:00
ns.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
options_test.go Don't dot import pkg/tt 2022-06-04 23:39:19 +01:00
options.go Remove use of "e.g.," and "i.e.,". 2022-11-20 15:44:29 +00:00
plugin_gccgo.go interface{} -> any now that Elvish requires Go 1.18. 2022-03-20 16:17:19 +00:00
plugin.go Require Go 1.18. 2022-03-20 15:28:23 +00:00
port_helper_test.go Remove most uses of the ioutil package. 2021-08-23 00:36:26 +01:00
port_unix.go Require Go 1.18. 2022-03-20 15:28:23 +00:00
port_windows.go pkg/eval: Fix EPIPE on Windows. 2021-06-18 00:45:25 +01:00
port.go Fixup for #1598. 2022-11-20 16:21:10 +00:00
process_unix.go Fixup for #1598. 2022-11-20 16:21:10 +00:00
process_windows.go
purely_eval_test.go Refactor the API of eval.NsBuilder to be completely based on methods. 2021-10-23 21:44:11 +01:00
purely_eval.go pkg/eval: Add tests for errors in tilde expansion. 2022-06-19 23:34:36 +01:00
pwd_test.go Move pkg/testutil/must.go to a new pkg/must. 2022-06-20 20:29:14 +01:00
pwd.go Use consistent pattern for mutating variables in tests. 2022-06-19 23:56:18 +01:00
testexport_test.go pkg/eval: Test the exit command by faking os.Exit. 2022-06-23 20:25:01 +01:00
value_test.go Fixup for #1531. 2022-06-11 21:26:32 +01:00
var_parse_test.go Don't dot import pkg/tt 2022-06-04 23:39:19 +01:00
var_parse.go A couple of TODO cleanups 2021-05-30 00:40:42 +01:00
var_ref.go Remove support for the "local:", "up:" and ":" special namespaces. 2022-01-03 00:47:41 +00:00