github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2014/readability/test-pattern_en.go (about)

     1  // +build OMIT
     2  
     3  package sample // OMIT
     4  
     5  func TestSample(t *testing.T) { // OMIT
     6  	// Typical test code
     7  	if got, want := testTargetFunc(input), expectedValue; !checkTestResult(got, want) {
     8  		t.Errorf("testTargetFunc(%v) = %v; want %v", input, got, want)
     9  	}
    10  } // OMIT