frankban / quicktest

Quick helpers for testing Go applications
MIT License
529 stars 27 forks source link

Add test for C.Run for more coverage #167

Closed dolmen closed 8 months ago

dolmen commented 1 year ago

Add TestCRunFormatWithC (derived from TestCRunFormat) to alse check that Format is passed from the parent to the child when c.TB has a Run method with signature func(string, func(*C) bool).

This added coverage will be helpful to check alternative implementations of C.Run such as #165 and #166 (see https://github.com/frankban/quicktest/pull/166#discussion_r1281720999).

Cc: @rogpeppe

dolmen commented 1 year ago

ping @frankban