cmd/syncthing: Add mock types for API service testing

This commit is contained in:
Jakob Borg
2016-03-24 08:09:13 +00:00
committed by Audrius Butkevicius
parent a28f890e83
commit 52c74ad866
7 changed files with 304 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// Copyright (C) 2016 The Syncthing Authors.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.
package main
import (
"time"
"github.com/syncthing/syncthing/lib/logger"
)
type mockedLoggerRecorder struct{}
func (r *mockedLoggerRecorder) Since(t time.Time) []logger.Line {
select {}
}
func (r *mockedLoggerRecorder) Clear() {}