cwinters8 / gomap

Go module for interfacing with JMAP servers
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

deprecate unnecessary testing utils #6

Closed cwinters8 closed 1 year ago

cwinters8 commented 1 year ago

utils.Failf and utils.Checkf are no longer needed, so they should be replaced and removed.

Replace uses of utils.Failf with t.Fatalf.

Replace uses of utils.Checkf by using a "table driven" (struct driven?) approach. For each test case, append a utils.Case to a slice of cases, then iterate over the slice to test each case.