add t.Output#90
Conversation
b204bbf to
9dc8a2a
Compare
|
I added the test for the non-fallback behavior, because that was the easy one. Actually this seems to pass with older Go versions, so I'm not sure what the other test was for. To be honest, it's been a while since I touched this code :D |
|
@flyingmutant any chance to review this? |
|
Yep, thanks for the ping. Will take a look tomorrow. |
|
Looks good overall – but let's remove the fallback with |
|
@flyingmutant thanks for the review :) just to clarify do you mean a) have t.Output be a noop on older Go, b) require Go 1.25, or c) only define t.Output on Go >= 1.25 using build tags? I think b) would make the most sense since with the release of 1.26, 1.25 is now the oldest supported minor release. |
|
I meant c) – with build tags (as was the case for |
|
@flyingmutant Gotcha. Should I create additional files for t.Output, or rename the existing synctest files to be the catch-all Go 1.25 files? Since you went with panic for SyncTest, I suppose I'll do the same for Output, not just have the method not be there in older Go. I'll submit another PR to enable Go 1.25 and 1.26 for CI builds, too. |
045e97e to
950e921
Compare
|
@flyingmutant OK, I used build tags similar to synctest. Take another look :) |
|
I think I've communicated poorly here, sorry.
But do we really have to use build tags to be consistent with |
950e921 to
da9d7db
Compare
|
@flyingmutant How about now?
Should I move the interface check around so it will always fail on older Go? I don't know if t.tb is always set though. |
|
Great, thanks! |
I tried creating a test but didn't really manage, especially accounting for the different Go versions. I'm not sure how important a test for this is.
for #84