Exemplo n.º 1
0
func testCreateConfigExpectException(expectedPanic, argument string, t *testing.T) {
	defer test.TestExpectException(expectedPanic, t)

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

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

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

	BasicValidationOfConsoleArguments(args)
}