Reorganize source code

This commit is contained in:
Junegunn Choi committed 2015-01-12 12:56:17 +09:00
1 parent 7a2bc2cada
commit cd847affb7
21 files changed
+139 -91

No files matched your search

+7 -3
View File
@@ -1,10 +1,14 @@
package fzf
import "testing"
import (
"testing"
"github.com/junegunn/fzf/src/util"
)
func TestReadFromCommand(t *testing.T) {
strs := []string{}
eb := NewEventBox()
eb := util.NewEventBox()
reader := Reader{
pusher: func(s string) { strs = append(strs, s) },
eventBox: eb}
@@ -26,7 +30,7 @@ func TestReadFromCommand(t *testing.T) {
}
// Wait should return immediately
eb.Wait(func(events *Events) {
eb.Wait(func(events *util.Events) {
if _, found := (*events)[EvtReadNew]; !found {
t.Errorf("%s", events)
}