[go: up one dir, main page]

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.7
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.9
Choose a head ref
  • 12 commits
  • 24 files changed
  • 5 contributors

Commits on Mar 22, 2022

  1. Run tests on Go 1.18 (#290)

    Aoang committed Mar 22, 2022
    Configuration menu
    Copy the full SHA
    79433ac View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2022

  1. Fix printing of types in reporter output (#293)

    When printing a pointer, only elide the type for unnamed pointers.
    Otherwise, we can run into situations where named and unnamed pointers
    format the same way in indistinguishable ways.
    
    When printing an interview, never skip the interface type.
    Whether we skip printing the type should be determined by the
    parent containers, and not locally determined.
    For examples, interface values within a struct, slice, or map
    will always be elided since they can be inferred.
    dsnet committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    4664e24 View commit details
    Browse the repository at this point in the history
  2. Use string formatting for slice of bytes (#294)

    If a slice of bytes is mostly text, format them as text
    instead of as []byte literal with hexadecimal digits.
    
    Avoid always printing the type. This is technically invalid Go code,
    but is unnecessary in many cases since the type is inferred
    from the parent concrete type.
    
    Fixes #272
    dsnet committed Apr 25, 2022
    Configuration menu
    Copy the full SHA
    71220fc View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2022

  1. remove xerrors (#292)

    Versions older than Go 1.13 are no longer in use. Remove unnecessary
    dependencies.
    catatsuy committed Apr 26, 2022
    Configuration menu
    Copy the full SHA
    63c2960 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f144a35 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2022

  1. Use reflect.Value.IsZero (#297)

    Now that Go 1.13 is the minimum version, we can use the reflect.Value.IsZero
    method instead of our own internal/value.IsZero function.
    Interestingly, our IsZero function pre-dates the IsZero method,
    but fortunately has the exact same semantics, since both are targetting
    semantics defined by the Go language specification.
    dsnet committed Jun 6, 2022
    Configuration menu
    Copy the full SHA
    a53d7e0 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. Format with Go 1.19 formatter (#304)

    This allows the GoDoc to take advantage of new markup syntax
    introduced in Go 1.19. This does not require that our minimum
    supported version be bumped to Go 1.19 since the pkgsite renders
    our godoc regardless of supported Go version.
    dsnet committed Jul 13, 2022
    Configuration menu
    Copy the full SHA
    14ad8a0 View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2022

  1. Configuration menu
    Copy the full SHA
    5dac6aa View commit details
    Browse the repository at this point in the history
  2. Pre-declare global type variables (#302)

    Co-authored-by: Damien Neil <neild@users.noreply.github.com>
    dsnet and neild committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    f36a68d View commit details
    Browse the repository at this point in the history
  3. Use value.TypeString in PathStep.String (#306)

    The value.TypeString function is what the rest of the package uses
    and is slightly cleaner than using reflect.Type.String.
    
    Updates #305
    
    Co-authored-by: Damien Neil <neild@users.noreply.github.com>
    dsnet and neild committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    6606d4d View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2022

  1. Run tests on Go 1.19 (#309)

    * Run tests on Go 1.19
    
    * Format comment
    
    Finish the rest of the work for #304
    
    Co-authored-by: Damien Neil <neild@users.noreply.github.com>
    Aoang and neild committed Aug 31, 2022
    Configuration menu
    Copy the full SHA
    377d283 View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. Adjust heuristic for line-based versus byte-based diffing (#299)

    If the string has many characters that require escape sequences to print,
    then we need to take that into consideration and avoid byte-by-byte diffing.
    
    Co-authored-by: Damien Neil <neild@users.noreply.github.com>
    dsnet and neild committed Sep 2, 2022
    Configuration menu
    Copy the full SHA
    a97318b View commit details
    Browse the repository at this point in the history
Loading