fix #1288: unable to go get httprunner v4

This commit is contained in:
debugtalk
2022-05-09 19:53:16 +08:00
parent 17c7699cee
commit 24effeccdb
48 changed files with 92 additions and 90 deletions
+2 -5
View File
@@ -14,7 +14,7 @@ import (
"github.com/prometheus/client_golang/prometheus/push"
"github.com/rs/zerolog/log"
"github.com/httprunner/httprunner/hrp/internal/json"
"github.com/httprunner/httprunner/v4/hrp/internal/json"
)
// Output is primarily responsible for printing test results to different destinations
@@ -37,8 +37,7 @@ type Output interface {
}
// ConsoleOutput is the default output for standalone mode.
type ConsoleOutput struct {
}
type ConsoleOutput struct{}
// NewConsoleOutput returns a ConsoleOutput.
func NewConsoleOutput() *ConsoleOutput {
@@ -102,12 +101,10 @@ func getTotalFailRatio(totalRequests, totalFailures int64) (failRatio float64) {
// OnStart of ConsoleOutput has nothing to do.
func (o *ConsoleOutput) OnStart() {
}
// OnStop of ConsoleOutput has nothing to do.
func (o *ConsoleOutput) OnStop() {
}
// OnEvent will print to the console.
+1 -1
View File
@@ -3,7 +3,7 @@ package boomer
import (
"time"
"github.com/httprunner/httprunner/hrp/internal/json"
"github.com/httprunner/httprunner/v4/hrp/internal/json"
)
type transaction struct {