You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@cpovirk explains in comments for Subject.butWas() that it has a better implementation than what developers would typically do. We ran into this today, which implementing our own isEqualTo(). Given that protected access has been considered, I mostly want to indicate that there is interest in this.
/* * TODO(cpovirk): Consider giving this protected access. * * It is likely better than what users would otherwise do -- `fact("but was", actual)`, which * ignores actualCustomStringRepresentation() (which is inaccessible outside the package). * * But I want to think more about this. In particular, if people use this to reimplement * isEqualTo(), I would be sad that they're missing out on its normal special handling. That's * probably not enough reason to avoid adding this, but we can hold it back for now. */
@cpovirk explains in comments for
Subject.butWas()
that it has a better implementation than what developers would typically do. We ran into this today, which implementing our ownisEqualTo()
. Given thatprotected
access has been considered, I mostly want to indicate that there is interest in this.truth/core/src/main/java/com/google/common/truth/Subject.java
Line 1142 in b3fb67f
The text was updated successfully, but these errors were encountered: