From f598e215f069f2ce2759843509657086768c7891 Mon Sep 17 00:00:00 2001 From: debugtalk Date: Thu, 11 Nov 2021 18:36:31 +0800 Subject: [PATCH] change: update example function name --- examples/demo_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/demo_test.go b/examples/demo_test.go index b31cf880..22fd2f77 100644 --- a/examples/demo_test.go +++ b/examples/demo_test.go @@ -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: // } -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() { // } -func Example_YAMTestCase() { +func Example_yamlDemo() { testCase := &hrp.TestCasePath{Path: demoTestCaseYAMLPath} err := hrp.NewRunner(nil).Run(testCase) // hrp.Run(testCase) fmt.Println(err)