-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added handling of bad mode_select input, added tests
- Loading branch information
Showing
10 changed files
with
121 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Test module for empty mode table error case | ||
-- This should error because the mode table is empty | ||
setenv{"TEST_EMPTY_MODE", "value", mode={}} -- Should error: empty mode table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Test module for invalid mode error case | ||
-- This should error because "invalid" is not a valid mode | ||
setenv{"TEST_INVALID_MODE", "value", mode={"invalid"}} -- Should error: invalid mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- Test module for operations that work in both modes | ||
-- Tests combination of dual-mode and normal operations | ||
|
||
-- Operations that work in both load and unload modes | ||
setenv{"MIXED_ENV_BOTH", "env_both", mode={"load", "unload"}} | ||
prepend_path{"MIXED_PATH", "/mixed/bin/both", mode={"load", "unload"}} | ||
|
||
-- Stack operations with mode selection | ||
pushenv{"MIXED_STACK", "stack_both", mode={"load", "unload"}} | ||
|
||
-- Normal operations (should execute in both modes) | ||
setenv("MIXED_NORMAL_ENV", "normal_env") | ||
append_path("MIXED_LIB", "/mixed/lib/normal") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Test module for mixed load operations | ||
-- Tests combination of load-specific and normal operations | ||
|
||
-- Load-specific operations | ||
setenv{"MIXED_ENV_LOAD", "env_load", mode={"load"}} | ||
prepend_path{"MIXED_PATH", "/mixed/bin/load", mode={"load"}} | ||
|
||
-- Normal operations (should execute in load mode) | ||
setenv("MIXED_NORMAL_ENV", "normal_env") | ||
append_path("MIXED_LIB", "/mixed/lib/normal") |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
-- Test module for mixed unload operations | ||
-- Tests combination of unload-specific and normal operations | ||
|
||
-- Unload-specific operations | ||
setenv{"MIXED_ENV_UNLOAD", "env_unload", mode={"unload"}} | ||
append_path{"MIXED_PATH", "/mixed/bin/unload", mode={"unload"}} | ||
|
||
-- Normal operations (should execute in unload mode) | ||
setenv("MIXED_NORMAL_ENV", "normal_env") | ||
append_path("MIXED_LIB", "/mixed/lib/normal") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Test module for nil mode error case | ||
-- This should error because no mode is specified | ||
setenv{"TEST_NIL_MODE", "value"} -- Should error: no mode specified |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters