Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(7)

Unified Diff: testing/checkers/file.go

Issue 13606045: various: gocheck, checkers, imports fixes (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: testing/checkers/file.go
=== modified file 'testing/checkers/file.go'
--- testing/checkers/file.go 2013-06-20 04:02:49 +0000
+++ testing/checkers/file.go 2013-09-13 14:48:13 +0000
@@ -8,17 +8,17 @@
"os"
"reflect"
- . "launchpad.net/gocheck"
+ gc "launchpad.net/gocheck"
)
// IsNonEmptyFile checker
type isNonEmptyFileChecker struct {
- *CheckerInfo
+ *gc.CheckerInfo
}
-var IsNonEmptyFile Checker = &isNonEmptyFileChecker{
- &CheckerInfo{Name: "IsNonEmptyFile", Params: []string{"obtained"}},
+var IsNonEmptyFile gc.Checker = &isNonEmptyFileChecker{
+ &gc.CheckerInfo{Name: "IsNonEmptyFile", Params: []string{"obtained"}},
}
func (checker *isNonEmptyFileChecker) Check(params []interface{}, names []string) (result bool, error string) {
@@ -44,11 +44,11 @@
// IsDirectory checker
type isDirectoryChecker struct {
- *CheckerInfo
+ *gc.CheckerInfo
}
-var IsDirectory Checker = &isDirectoryChecker{
- &CheckerInfo{Name: "IsDirectory", Params: []string{"obtained"}},
+var IsDirectory gc.Checker = &isDirectoryChecker{
+ &gc.CheckerInfo{Name: "IsDirectory", Params: []string{"obtained"}},
}
func (checker *isDirectoryChecker) Check(params []interface{}, names []string) (result bool, error string) {
@@ -74,11 +74,11 @@
// DoesNotExist checker makes sure the path specified doesn't exist.
type doesNotExistChecker struct {
- *CheckerInfo
+ *gc.CheckerInfo
}
-var DoesNotExist Checker = &doesNotExistChecker{
- &CheckerInfo{Name: "DoesNotExist", Params: []string{"obtained"}},
+var DoesNotExist gc.Checker = &doesNotExistChecker{
+ &gc.CheckerInfo{Name: "DoesNotExist", Params: []string{"obtained"}},
}
func (checker *doesNotExistChecker) Check(params []interface{}, names []string) (result bool, error string) {
« names/user.go ('K') | « testing/checkers/checker.go ('k') | testing/checkers/file_test.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b