Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: google/go-cmp
base: v0.5.4
Choose a base ref
...
head repository: google/go-cmp
compare: v0.5.5
Choose a head ref
  • 4 commits
  • 8 files changed
  • 3 contributors

Commits on Feb 5, 2021

  1. cmp/cmpopts: use errors.Is with ≥go1.13 in compareErrors (#251)

    Use the standard definition of errors.Is to implement compareErrors with
    ≥go1.13. Retain the implementation using golang.org/x/xerrors for versions <go1.13.
    
    This will allow packages using newer Go versions and already relying on
    the errors package to get rid of the transitive dependency on
    golang.org/x/xerrors.
    tklauser committed Feb 5, 2021
    Copy the full SHA
    3a98a11 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2021

  1. Run tests on Go 1.16 (#252)

    Add Go 1.16 to the GitHub actions test coverage matrix.
    
    Also switch the gofmt check to only run on Go 1.16, i.e. the latest
    supported version.
    tklauser committed Feb 20, 2021
    Copy the full SHA
    e9947a2 View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2021

  1. De-virtualize interfaces for specialized diffing (#254)

    Specialized diffing strings and slices should occur for
    interface types where both values have the same concrete type.
    This is especially relevant for protocmp.Transform,
    which transforms every proto.Message as a map[string]interface{}.
    dsnet committed Mar 3, 2021
    Copy the full SHA
    dc6435e View commit details
    Browse the repository at this point in the history
  2. Fix reporter verbosity bug (#253)

    FormatDiff should only set the verbosity to 3 if the current verbosity
    is lower than 3. Otherwise, it may remove an intended higher verbosity
    setting causing the reporter output to not differentiate between
    two large values that are different at the end.
    
    While we are at it, increase the maxVerbosityPreset to 6.
    dsnet committed Mar 3, 2021
    Copy the full SHA
    8fa37b4 View commit details
    Browse the repository at this point in the history