Skip to content

Commit

Permalink
Merge pull request #9 from szkiba/feature/upgrade-deps
Browse files Browse the repository at this point in the history
upgrade k6 to v0.43.1
  • Loading branch information
szkiba authored Mar 10, 2023
2 parents 8f3c145 + 2ac51e5 commit 37c30f8
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 387 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
version: "3"

env:
K6_VERSION: v0.37.0
K6_VERSION: v0.43.1

silent: true

Expand Down
10 changes: 5 additions & 5 deletions faker.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Faker struct {
*gofakeit.Faker
}

func newFaker(vu modules.VU, seed int64) *Faker {
func newFaker(vu modules.VU, seed int64) *Faker { //nolint:varnamelen
src := frand.NewSource()

if seed != 0 {
Expand All @@ -31,23 +31,23 @@ func (f *Faker) Ipv6Address() string {
return f.IPv6Address()
}

func (f *Faker) HttpStatusCodeSimple() int {
func (f *Faker) HttpStatusCodeSimple() int { //nolint:golint,revive,stylecheck
return f.HTTPStatusCodeSimple()
}

func (f *Faker) HttpStatusCode() int {
func (f *Faker) HttpStatusCode() int { //nolint:golint,revive,stylecheck
return f.HTTPStatusCode()
}

func (f *Faker) HttpMethod() string {
func (f *Faker) HttpMethod() string { //nolint:golint,revive,stylecheck
return f.HTTPMethod()
}

func (f *Faker) Bs() string {
return f.BS()
}

func (f *Faker) Uuid() string {
func (f *Faker) Uuid() string { //nolint:golint,revive,stylecheck
return f.UUID()
}

Expand Down
32 changes: 27 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,33 @@
module github.com/szkiba/xk6-faker

go 1.16
go 1.18

require (
github.com/brianvoe/gofakeit/v6 v6.4.1
github.com/dop251/goja v0.0.0-20220124171016-cfb079cdc7b4
github.com/sirupsen/logrus v1.8.1
go.k6.io/k6 v0.37.0
github.com/brianvoe/gofakeit/v6 v6.20.2
github.com/dop251/goja v0.0.0-20230304130813-e2f543bf4b4c
github.com/sirupsen/logrus v1.9.0
go.k6.io/k6 v0.43.1
lukechampine.com/frand v1.4.2
)

require (
github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect
github.com/dlclark/regexp2 v1.7.0 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/go-sourcemap/sourcemap v2.1.4-0.20211119122758-180fcef48034+incompatible // indirect
github.com/google/pprof v0.0.0-20230207041349-798e818bf904 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.16 // indirect
github.com/mstoykov/atlas v0.0.0-20220808085829-90340e9998bd // indirect
github.com/onsi/ginkgo v1.16.5 // indirect
github.com/onsi/gomega v1.18.1 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/serenize/snaker v0.0.0-20201027110005-a7ad2135616e // indirect
github.com/spf13/afero v1.1.2 // indirect
golang.org/x/sys v0.0.0-20220928140112-f11e5e49a4ec // indirect
golang.org/x/text v0.3.8 // indirect
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
gopkg.in/guregu/null.v3 v3.3.0 // indirect
)
Loading

0 comments on commit 37c30f8

Please sign in to comment.