@@ -52,8 +52,8 @@ func (s *fileContentCheckerSuite) TestFileEquals(c *check.C) {
5252 testCheck (c , FileEquals , true , "" , filename , content )
5353 testCheck (c , FileEquals , true , "" , filename , []byte (content ))
5454 testCheck (c , FileEquals , true , "" , filename , myStringer {content })
55- testCheck (c , FileEquals , true , "" , filename , ReferenceFile (filename ))
56- testCheck (c , FileEquals , true , "" , filename , ReferenceFile (equalRefereceFilename ))
55+ testCheck (c , FileEquals , true , "" , filename , FileContentRef (filename ))
56+ testCheck (c , FileEquals , true , "" , filename , FileContentRef (equalRefereceFilename ))
5757
5858 twofer := content + content
5959 testCheck (c , FileEquals , false , "Failed to match with file contents:\n not-so-random-string" , filename , twofer )
@@ -65,7 +65,7 @@ func (s *fileContentCheckerSuite) TestFileEquals(c *check.C) {
6565 testCheck (c , FileEquals , false , "Cannot compare file contents with something of type int" , filename , 1 )
6666 testCheck (c , FileEquals , false ,
6767 fmt .Sprintf ("Failed to match contents with reference file \" %s\" :\n not-so-random-string" , notEqualRefereceFilename ),
68- filename , ReferenceFile (notEqualRefereceFilename ))
68+ filename , FileContentRef (notEqualRefereceFilename ))
6969}
7070
7171func (s * fileContentCheckerSuite ) TestFileContains (c * check.C ) {
@@ -92,7 +92,7 @@ func (s *fileContentCheckerSuite) TestFileContains(c *check.C) {
9292 testCheck (c , FileContains , false , "Filename must be a string" , 42 , "" )
9393 testCheck (c , FileContains , false , "Cannot compare file contents with something of type int" , filename , 1 )
9494 testCheck (c , FileContains , false , `Non-exact match with reference file is not supported` ,
95- filename , ReferenceFile (filename ))
95+ filename , FileContentRef (filename ))
9696}
9797
9898func (s * fileContentCheckerSuite ) TestFileMatches (c * check.C ) {
@@ -112,5 +112,5 @@ func (s *fileContentCheckerSuite) TestFileMatches(c *check.C) {
112112 testCheck (c , FileMatches , false , "Filename must be a string" , 42 , ".*" )
113113 testCheck (c , FileMatches , false , "Regex must be a string" , filename , 1 )
114114 testCheck (c , FileContains , false , `Non-exact match with reference file is not supported` ,
115- filename , ReferenceFile (filename ))
115+ filename , FileContentRef (filename ))
116116}
0 commit comments