@@ -2908,6 +2908,8 @@ func Test_truncatingFormat(t *testing.T) {
2908
2908
}
2909
2909
}
2910
2910
2911
+ // parseLabeledOutput does the inverse of labeledOutput - it takes a formatted
2912
+ // output string and turns it back into a slice of labeledContent.
2911
2913
func parseLabeledOutput (output string ) []labeledContent {
2912
2914
labelPattern := regexp .MustCompile (`^\t([^\t]*): *\t(.*)$` )
2913
2915
contentPattern := regexp .MustCompile (`^\t *\t(.*)$` )
@@ -3037,8 +3039,8 @@ func TestErrorIs(t *testing.T) {
3037
3039
}
3038
3040
for _ , tt := range tests {
3039
3041
tt := tt
3040
- mockT := new (captureTestingT )
3041
3042
t .Run (fmt .Sprintf ("ErrorIs(%#v,%#v)" , tt .err , tt .target ), func (t * testing.T ) {
3043
+ mockT := new (captureTestingT )
3042
3044
res := ErrorIs (mockT , tt .err , tt .target )
3043
3045
mockT .checkResultAndErrMsg (t , tt .result , res , tt .resultErrMsg )
3044
3046
})
@@ -3100,8 +3102,8 @@ func TestNotErrorIs(t *testing.T) {
3100
3102
}
3101
3103
for _ , tt := range tests {
3102
3104
tt := tt
3103
- mockT := new (captureTestingT )
3104
3105
t .Run (fmt .Sprintf ("NotErrorIs(%#v,%#v)" , tt .err , tt .target ), func (t * testing.T ) {
3106
+ mockT := new (captureTestingT )
3105
3107
res := NotErrorIs (mockT , tt .err , tt .target )
3106
3108
mockT .checkResultAndErrMsg (t , tt .result , res , tt .resultErrMsg )
3107
3109
})
0 commit comments