change: update example function name

This commit is contained in:
debugtalk
2021-11-11 18:36:31 +08:00
parent 6f2a38b5c7
commit f598e215f0

View File

@@ -78,14 +78,14 @@ func TestGenDemoTestCase(t *testing.T) {
}
}
func Example_TestCase() {
func Example_demo() {
err := hrp.NewRunner(nil).Run(demoTestCase) // hrp.Run(demoTestCase)
fmt.Println(err)
// Output:
// <nil>
}
func Example_JSONTestCase() {
func Example_jsonDemo() {
testCase := &hrp.TestCasePath{Path: demoTestCaseJSONPath}
err := hrp.NewRunner(nil).Run(testCase) // hrp.Run(testCase)
fmt.Println(err)
@@ -93,7 +93,7 @@ func Example_JSONTestCase() {
// <nil>
}
func Example_YAMTestCase() {
func Example_yamlDemo() {
testCase := &hrp.TestCasePath{Path: demoTestCaseYAMLPath}
err := hrp.NewRunner(nil).Run(testCase) // hrp.Run(testCase)
fmt.Println(err)