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
* Even SourceTool API context
This commit modifies the sourcetool api to make all functions take
a context. As we are preparing for third party backend, we need to
ensure tools can get the tools context if they need it.
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
* Bump go and linter
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
---------
Signed-off-by: Adolfo García Veytia (Puerco) <[email protected]>
errorMessage.WriteString(fmt.Sprintf("ProtectedBranch structs not equal:\nExpected: %+v\nGot: %+v", expected, actual))
695
+
fmt.Fprintf(&errorMessage, "ProtectedBranch structs not equal:\nExpected: %+v\nGot: %+v", expected, actual)
696
696
if!sinceMatch {
697
-
errorMessage.WriteString(fmt.Sprintf("\nSpecifically, 'Since' fields were not equal (Expected.Since: %v, Got.Since: %v)", expected.GetSince(), actual.GetSince()))
697
+
fmt.Fprintf(&errorMessage, "\nSpecifically, 'Since' fields were not equal (Expected.Since: %v, Got.Since: %v)", expected.GetSince(), actual.GetSince())
698
698
}
699
699
ifignoreSince&&actual.GetSince().AsTime() != (time.Time{}) { // Add note only if Since was ignored AND original got.Since was not zero
700
-
errorMessage.WriteString(fmt.Sprintf("\n(Note: 'Since' field was ignored in comparison as requested. Original Expected.Since: %v, Original Got.Since: %v)", expected.GetSince(), actual.GetSince()))
700
+
fmt.Fprintf(&errorMessage, "\n(Note: 'Since' field was ignored in comparison as requested. Original Expected.Since: %v, Original Got.Since: %v)", expected.GetSince(), actual.GetSince())
0 commit comments