diff options
| author | Ben Navetta <[email protected]> | 2014-08-25 18:15:36 -0400 |
|---|---|---|
| committer | Ben Navetta <[email protected]> | 2014-08-25 18:15:36 -0400 |
| commit | 33ae83f4d9b78501549fc880c1e2dd055466808c (patch) | |
| tree | acf4d2d8f390c3a4f3d5219d329c7c2add9769f9 /status_test.go | |
| parent | c8529e79da002e6c816c0df895edc7ce7a543a37 (diff) | |
remove status_foreach binding
Diffstat (limited to 'status_test.go')
| -rw-r--r-- | status_test.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/status_test.go b/status_test.go index a0ff1d3..228ee0e 100644 --- a/status_test.go +++ b/status_test.go @@ -23,29 +23,6 @@ func TestStatusFile(t *testing.T) { } } -func TestStatusForeach(t *testing.T) { - repo := createTestRepo(t) - defer repo.Free() - defer os.RemoveAll(repo.Workdir()) - - err := ioutil.WriteFile(path.Join(path.Dir(repo.Workdir()), "hello.txt"), []byte("Hello, World"), 0644) - checkFatal(t, err) - - statusFound := false - err = repo.StatusForeach(func (path string, statusFlags Status) int { - if path == "hello.txt" && statusFlags & StatusWtNew != 0 { - statusFound = true - } - - return 0 - }); - checkFatal(t, err) - - if !statusFound { - t.Fatal("Status callback not called with the new file") - } -} - func TestEntryCount(t *testing.T) { repo := createTestRepo(t) defer repo.Free() |
