Skip to content

Commit 674636d

Browse files
committed
lib/testing: Add new create_core_module_stub test
1 parent 4b58fbc commit 674636d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/testing/stubbing.bats

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ teardown() {
2626
[ -e "$_GO_CORE_DIR/lib/log" ]
2727
assert_success 'Hello, World!'
2828
}
29+
30+
31+
@test "$SUITE: create_core_module_stub aborts if module unknown" {
32+
[ ! -e "$_GO_CORE_DIR/lib/foobar" ]
33+
run create_core_module_stub 'foobar' 'echo Hello, World!'
34+
assert_failure "No such core module: $_GO_CORE_DIR/lib/foobar"
35+
}

0 commit comments

Comments
 (0)