Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump github.com/maxatome/go-testdeep from 1.10.1 to 1.11.0 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 10, 2022

Bumps github.com/maxatome/go-testdeep from 1.10.1 to 1.11.0.

Release notes

Sourced from github.com/maxatome/go-testdeep's releases.

v1.11.0

New features

  • [JSON], [SubJSONOf] and [SuperJSONOf] operators:
    • Now:
      td.JSON(`{"foo": $1}`, td.Between(12, 34))
      td.JSON(`{"foo": Between($1, $2)}`, 12, 34)
      act the same way. Since v1.10.1 rework, the second was not working as expected.
      At the same time:
      td.JSON(`{"foo": Between(12, 34, $1)}`, td.BoundsOutIn)
      now works as expected. It was rejected before,
    • int_lit & float_lit numbers, as defined in go specification, are now accepted in JSON, allowing, for example, to embed hexadecimal numbers in expected JSON;
  • [Between] operator accepts time.Duration as TO when FROM is a time.Time;
  • [Between], [Gt], [Gte], [Lt] and [Lte] operators:
    • now handle values implementing Compare or Less methods:
      Compare and/or Less methods signatures follow:
      func (a T) Less(b T) bool   // returns true if a < b
      func (a T) Compare(b T) int // returns -1 if a < b, 1 if a > b, 0 if a == b
      for example, the new go1.18 net/netip.Addr implements both,
    • failure reports display numbers as elsewhere,
    • some docs have been fixed;
  • [Smuggle] can now cast values, allowing such things:
    // A string containing JSON
    got := `{ "foo": 123 }`
    td.Cmp(t, got, td.Smuggle(json.RawMessage{}, td.JSON(`{"foo":123}`))
    // or
    td.Cmp(t, got, td.Smuggle((json.RawMessage)(nil), td.JSON(`{"foo":123}`))
  • in report failures, the stack trace was displayed if it contained at least 2 levels. Now it is also displayed if it contains one level BUT the source file path contains a directory. It helps to localize quickly the errors in large repositories;
  • td.T gains 3 new methods to log with a stack trace: LogTrace, ErrorTrace and FatalTrace;
  • handle go1.17 []T*[n]T convertibility edge case;
  • in failure reports (float64) type is now omitted (like (int) and (bool) already were), but the value always contains a "." (except if ±Inf, NaN or with exponent) to distinguish them from int.

Fixes

  • [Contains]: slice in slice search didn't work at end of slice;
  • [JSON], [SubJSONOf] and [SuperJSONOf] operators panicked when using [All]+JSON-operator+embeddedOp+$1;
  • anchoring 2 slices at the same time didn't work.

Miscellaneous

... (truncated)

Commits
  • 4aa5af6 feat(JSON): accept int_lit & float_lit numbers as defined in go spec
  • 4e544bd feat(Between): handles value implementing Compare & Less methods
  • 515da4a feat: in failure reports float64 type is now omitted (like int)
  • 13f6a18 fix(anchor): anchoring 2 slices at the same time didn't work
  • 55d8ae0 fix(JSON): a panic could occur when using All+JSON+embeddedOp+$1
  • 5d81cbf ci: use install-go.pl v3.0
  • f2cbc93 ci: make linters happy
  • ef3e0f2 feat: add (*td.T).{Log,Error,Fatal}Trace() methods
  • fca3a78 feat: failure stack trace starting one level if one directory involved
  • f04021a ci: use golangci-lint 1.43.0 + add bidichk linter
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/maxatome/go-testdeep](https://github.com/maxatome/go-testdeep) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/maxatome/go-testdeep/releases)
- [Commits](maxatome/go-testdeep@v1.10.1...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/maxatome/go-testdeep
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 10, 2022
@coveralls
Copy link

Pull Request Test Coverage Report for Build 1678640338

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 67.419%

Totals Coverage Status
Change from base Build 1409469219: 0.0%
Covered Lines: 10334
Relevant Lines: 15328

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
1 participant