Browse Source

Merge pull request #6 from bmizerany/speccov-fixes

Spec coverage cleanup
Brad Fitzpatrick 11 years ago
parent
commit
a66258639e
1 changed files with 4 additions and 4 deletions
  1. 4 4
      z_spec_test.go

+ 4 - 4
z_spec_test.go

@@ -30,7 +30,7 @@ func init() {
 }
 }
 
 
 // specCover marks all sentences for section sec in defaultSpecCoverage. Sentences not
 // specCover marks all sentences for section sec in defaultSpecCoverage. Sentences not
-// "covered" will be included report outputed by TestSpecCoverage.
+// "covered" will be included in report outputed by TestSpecCoverage.
 func specCover(sec, sentences string) {
 func specCover(sec, sentences string) {
 	defaultSpecCoverage.cover(sec, sentences)
 	defaultSpecCoverage.cover(sec, sentences)
 }
 }
@@ -145,7 +145,7 @@ func parseSentences(sens string) []string {
 	return ss
 	return ss
 }
 }
 
 
-func Test_Z_Spec_ParseSentences(t *testing.T) {
+func TestSpecParseSentences(t *testing.T) {
 	tests := []struct {
 	tests := []struct {
 		ss   string
 		ss   string
 		want []string
 		want []string
@@ -171,7 +171,7 @@ func Test_Z_Spec_ParseSentences(t *testing.T) {
 	}
 	}
 }
 }
 
 
-func Test_Z_BuildCoverageTable(t *testing.T) {
+func TestSpecBuildCoverageTable(t *testing.T) {
 	testdata := `
 	testdata := `
 <rfc>
 <rfc>
   <middle>
   <middle>
@@ -204,7 +204,7 @@ func Test_Z_BuildCoverageTable(t *testing.T) {
 	}
 	}
 }
 }
 
 
-func Test_Z_SpecUncovered(t *testing.T) {
+func TestSpecUncovered(t *testing.T) {
 	testdata := `
 	testdata := `
 <rfc>
 <rfc>
   <middle>
   <middle>