frankban / quicktest

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

rename AddCleanup to Defer #30

Closed rogpeppe closed 6 years ago

rogpeppe commented 6 years ago

This naming more succinct, more Go-idiomatic, and more suggestive of the semantics that are implemented (a LIFO stack of functions to run later).

We also rename Cleanup to Done (thinking of sync.WaitGroup.Done).

The old names are left in place as synonyms for now.