Skip to content

Commit dd4d39f

Browse files
dependabot[bot]tsenart
authored andcommitted
build(deps): bump pgregory.net/rapid from 0.3.3 to 1.0.0
Bumps [pgregory.net/rapid](https://github.com/flyingmutant/rapid) from 0.3.3 to 1.0.0. - [Release notes](https://github.com/flyingmutant/rapid/releases) - [Commits](flyingmutant/rapid@v0.3.3...v1.0.0) --- updated-dependencies: - dependency-name: pgregory.net/rapid dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: Tomás Senart <tsenart@gmail.com>
1 parent 8ccf2ae commit dd4d39f

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ require (
1515
github.com/streadway/quantile v0.0.0-20220407130108-4246515d968d
1616
github.com/tsenart/go-tsz v0.0.0-20180814235614-0bd30b3df1c3
1717
golang.org/x/net v0.12.0
18-
pgregory.net/rapid v0.3.3
18+
pgregory.net/rapid v1.0.0
1919
)
2020

2121
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
5050
gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca h1:PupagGYwj8+I4ubCxcmcBRk3VlUWtTg5huQpZR9flmE=
5151
gonum.org/v1/gonum v0.0.0-20181121035319-3f7ecaa7e8ca/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo=
5252
gonum.org/v1/netlib v0.0.0-20181029234149-ec6d1f5cefe6/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw=
53-
pgregory.net/rapid v0.3.3 h1:jCjBsY4ln4Atz78QoBWxUEvAHaFyNDQg9+WU62aCn1U=
54-
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
53+
pgregory.net/rapid v1.0.0 h1:iQaM2w5PZ6xvt6x7hbd7tiDS+nk7YPp5uCaEba+T/F4=
54+
pgregory.net/rapid v1.0.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04=

lib/results_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,21 +86,21 @@ func TestResultEncoding(t *testing.T) {
8686
hdrs := rapid.MapOf(
8787
rapid.StringMatching("^[!#$%&'*+\\-.^_`|~0-9a-zA-Z]+$"),
8888
rapid.SliceOfN(rapid.StringMatching(`^[0-9a-zA-Z]+$`), 1, -1),
89-
).Draw(t, "headers").(map[string][]string)
89+
).Draw(t, "headers")
9090

9191
want := Result{
92-
Attack: rapid.StringMatching(`^\w+$`).Draw(t, "attack").(string),
93-
Seq: rapid.Uint64().Draw(t, "seq").(uint64),
94-
Code: rapid.Uint16().Draw(t, "code").(uint16),
95-
Timestamp: time.Unix(rapid.Int64Range(0, 1e8).Draw(t, "timestamp").(int64), 0),
96-
Latency: time.Duration(rapid.Int64Min(0).Draw(t, "latency").(int64)),
97-
BytesIn: rapid.Uint64().Draw(t, "bytes_in").(uint64),
98-
BytesOut: rapid.Uint64().Draw(t, "bytes_out").(uint64),
99-
Error: rapid.StringMatching(`^\w+$`).Draw(t, "error").(string),
100-
Body: rapid.SliceOf(rapid.Byte()).Draw(t, "body").([]byte),
92+
Attack: rapid.StringMatching(`^\w+$`).Draw(t, "attack"),
93+
Seq: rapid.Uint64().Draw(t, "seq"),
94+
Code: rapid.Uint16().Draw(t, "code"),
95+
Timestamp: time.Unix(rapid.Int64Range(0, 1e8).Draw(t, "timestamp"), 0),
96+
Latency: time.Duration(rapid.Int64Min(0).Draw(t, "latency")),
97+
BytesIn: rapid.Uint64().Draw(t, "bytes_in"),
98+
BytesOut: rapid.Uint64().Draw(t, "bytes_out"),
99+
Error: rapid.StringMatching(`^\w+$`).Draw(t, "error"),
100+
Body: rapid.SliceOf(rapid.Byte()).Draw(t, "body"),
101101
Method: rapid.StringMatching("^(GET|PUT|POST|DELETE|HEAD|OPTIONS)$").
102-
Draw(t, "method").(string),
103-
URL: rapid.StringMatching(`^(https?):\/\/([a-zA-Z0-9-\.]+)(:[0-9]{1,5})?\/?([a-zA-Z0-9\-\._\?\,\'\/\\\+&amp;%\$#\=~]*)$`).Draw(t, "url").(string),
102+
Draw(t, "method"),
103+
URL: rapid.StringMatching(`^(https?):\/\/([a-zA-Z0-9-\.]+)(:[0-9]{1,5})?\/?([a-zA-Z0-9\-\._\?\,\'\/\\\+&amp;%\$#\=~]*)$`).Draw(t, "url"),
104104
}
105105

106106
if len(hdrs) > 0 {

0 commit comments

Comments
 (0)