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 Loading
base: v0.5.3
Choose a base ref
...
head repository: google/go-cmp Loading
compare: v0.5.4
Choose a head ref
  • 3 commits
  • 7 files changed
  • 1 contributor

Commits on Nov 23, 2020

  1. Use GitHub actions for testing (#246)

    Use a GitHub action to run test on each push and pull request.
    We test across a matrix covering Linux and MacOSX, and Go 1.8 to 1.15.
    dsnet committed Nov 23, 2020
    Configuration menu
    Copy the full SHA
    ade6b74 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2020

  1. Fix non-determinism in diffing algorithm (#247)

    A previous attempt to add non-determinism to the diffing algorithm
    unfortunately broke the algorithm for half the cases.
    
    This change modifies the algorithm to truly switch between starting
    with a forward search versus a reverse search.
    The main for-loop of Difference would switch repeatedly between
    performing a forward search, then a reverse search, and vice-versa.
    Since we can't jump into the middle of a for-loop to start with the
    reverse search first, we use a series of labels and goto statements
    to accomplish the same effect.
    
    Fixes #238
    dsnet committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    449e17c View commit details
    Browse the repository at this point in the history
  2. Impose verbosity limit when formatting map keys (#248)

    Map keys should have a sensible verbosity limit imposed,
    otherwise the reporter can end up printing a massive data structure
    that cannot reasonably fit in memory.
    dsnet committed Nov 24, 2020
    Configuration menu
    Copy the full SHA
    ec71d6d View commit details
    Browse the repository at this point in the history
Loading