Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Aug 31, 2022

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

Release notes

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

v1.12.0

New features

  • [Struct] & [SStruct] can override model fields in expectedFields, as in:
      td.Cmp(t, got, td.Struct(
        Person{
          Name:     "John Doe",
          Age:      23,
          Children: 4,
        },
        td.StructFields{
          "> Age":     td.Between(40, 45),
          ">Children": 0, // spaces after ">" are optional
        }),
      )
  • [Struct] & [SStruct] expectedFields is now optional or multiple. If multiple, all maps are merged from left to right;
  • try to detect wrongly defined hooks in [tdsuite] @​deathiop Given the 5 hooks:
  • try to detect possible tdsuite.Run() misuse, warn the user when it is called with a non-pointer suite, and some key methods are only available via a pointer suite;
  • add tdhttp.Options function & tdhttp.TestAPI.Options method;
  • [Code] can now officially delegate its comparison, using two new kinds of function:
    • func(t *td.T, arg)
    • func(assert, require *td.T, arg) this way the usage of [*td.T] methods is secure. Note that these functions do not return anything;
  • using a [*td.T] instance as Cmp* first parameter now allows to inherit its configuration.
    td.Cmp(td.Require(t), got, 42)
    is the same as:
    td.Require(t).Cmp(got, 42)

Fixes

Miscellaneous

  • enhance & refactor doc comments with new go 1.19 features;

... (truncated)

Commits
  • 6da0e7a docs: typo
  • dd50fba docs: td uses new go1.19 doc features
  • 9559aee refactor: remove unused code
  • d90e9df docs: helpers use new go1.19 doc features
  • ab3e129 docs: begin use of new go1.19 doc syntax
  • c155ea2 ci: test with go1.19 but still use go1.18.5 for linter
  • bf711f8 docs: use go1.19 gofmt
  • eb493a9 test: fix test related to go1.19 change
  • d9cc2da fix: panic when comparing nested maps using private fields as key
  • 259de00 fix: UseEqual & anchoring feature didn't play well together
  • 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.11.0 to 1.12.0.
- [Release notes](https://github.com/maxatome/go-testdeep/releases)
- [Commits](maxatome/go-testdeep@v1.11.0...v1.12.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] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Aug 31, 2022
@coveralls
Copy link

Pull Request Test Coverage Report for Build 2965692044

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.006%) to 68.878%

Totals Coverage Status
Change from base Build 2965682837: 0.006%
Covered Lines: 11588
Relevant Lines: 16824

💛 - 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 go Pull requests that update Go code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants