2016-03-24 08:09:13 +00:00
|
|
|
// 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,
|
2017-02-09 06:52:18 +00:00
|
|
|
// You can obtain one at https://mozilla.org/MPL/2.0/.
|
2016-03-24 08:09:13 +00:00
|
|
|
|
2019-03-26 19:53:58 +00:00
|
|
|
package api
|
2016-03-24 08:09:13 +00:00
|
|
|
|
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"github.com/syncthing/syncthing/lib/logger"
|
|
|
|
)
|
|
|
|
|
|
|
|
type mockedLoggerRecorder struct{}
|
|
|
|
|
|
|
|
func (r *mockedLoggerRecorder) Since(t time.Time) []logger.Line {
|
2016-03-24 08:55:33 +00:00
|
|
|
return []logger.Line{
|
|
|
|
{
|
|
|
|
When: time.Now(),
|
|
|
|
Message: "Test message",
|
|
|
|
},
|
|
|
|
}
|
2016-03-24 08:09:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (r *mockedLoggerRecorder) Clear() {}
|