Repair tests for latest changes

This commit is contained in:
Jakob Borg
2014-07-17 14:48:02 +02:00
parent 0a804e39a8
commit 4fe2992924
3 changed files with 35 additions and 14 deletions

View File

@@ -175,11 +175,21 @@ func (f FakeConnection) ID() protocol.NodeID {
return f.id
}
func (f FakeConnection) Name() string {
return ""
}
func (f FakeConnection) Option(string) string {
return ""
}
func (FakeConnection) Index(string, []protocol.FileInfo) {}
func (FakeConnection) Index(string, []protocol.FileInfo) error {
return nil
}
func (FakeConnection) IndexUpdate(string, []protocol.FileInfo) error {
return nil
}
func (f FakeConnection) Request(repo, name string, offset int64, size int) ([]byte, error) {
return f.requestData, nil