Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 289 Bytes

File metadata and controls

11 lines (9 loc) · 289 Bytes

testingExtensions

Simple AssertTrue/AssertFalse functions for testing. Create the TestUnit and test for some condition. If the test fails, it will fail in the wrapped *testing.T as well.

func TestSomething(t *testing.T) {
  tT := TestUnit(t)
  tT.AssertTrue(someCondition)
}