Example #1
0
func testCreateConfigExpectException(expectedPanic, argument string, t *testing.T) {
	defer test.TestExpectException(expectedPanic, t)

	CreateConfigData(argument)
}
Example #2
0
func testLoadBaseHtmlDataExpectException(expectedPanic, argument string, t *testing.T) {
	defer test.TestExpectException(expectedPanic, t)

	LoadBaseHtmlData(argument)
}
Example #3
0
func TestGenerateSlugEmptyArg(t *testing.T) {
	defer test.TestExpectException("no argument passed to convert", t)

	GenerateSlug("")
}
Example #4
0
func testAndExpectPanicWithArgs(args []string, expectedPanic string, t *testing.T) {
	defer test.TestExpectException(expectedPanic, t)

	BasicValidationOfConsoleArguments(args)
}