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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.5.2
Choose a base ref
...
head repository: google/go-cmp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.5.3
Choose a head ref
  • 5 commits
  • 48 files changed
  • 2 contributors

Commits on Sep 23, 2020

  1. Fix license headers (#236)

    There is no LICENSE.md file, but there is a LICENSE file.
    dsnet authored Sep 23, 2020
    Configuration menu
    Copy the full SHA
    d713870 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2020

  1. Add an example for IgnoreFields (#205)

    Add an example for IgnoreFields. This resuses the test data from the example
    in the cmp package to provide consistency between examples.
    colinnewell authored Oct 4, 2020
    Configuration menu
    Copy the full SHA
    566225a View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2020

  1. Adjust for reflect.Type.NumMethod change in Go1.16 (#240)

    In Go1.16, the reflect.Type.NumMethod method will no longer report
    unexported fields, matching the documented behavior on the method.
    This means that t.NumMethod() == 0 is no longer a reliable means
    to detect whether an interface type is the empty interface or not.
    Fix the code to check whether the empty interface itself implements
    the target type.
    dsnet authored Oct 20, 2020
    Configuration menu
    Copy the full SHA
    ab46b8b View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2020

  1. Revert "Adjust for reflect.Type.NumMethod change in Go1.16 (#240)" (#242

    )
    
    This reverts commit ab46b8b.
    The upstream change in Go1.16 has been rolled back.
    See golang/go#42123
    dsnet authored Nov 12, 2020
    Configuration menu
    Copy the full SHA
    d3c8501 View commit details
    Browse the repository at this point in the history
  2. Fix Diff documentation (#237)

    The description inaccurately describes the operation of Diff,
    which is y - x, where a '+' prefix denotes elements added from y
    and a '-' prefix denotes elements removed from x.
    
    For example:
    	// Consider this call to Diff and its result.
    	                  x  y
    	cmp.Diff({b:2, c:3}, {a:1, b:2}) => {+a:1, b:2, -c:3}
    
    	// Consider the same in mathematical notation.
    	         y - x
    	{a:1, b:2} - {b:2, c:3} = {+a:1, b:2, -c:3}
    dsnet authored Nov 12, 2020
    Configuration menu
    Copy the full SHA
    0a3ecd3 View commit details
    Browse the repository at this point in the history
Loading