fix: protocol v1

This commit is contained in:
2024-08-02 12:57:07 +02:00
parent 8f89ed7e77
commit b976bde363
23 changed files with 392 additions and 85 deletions

View File

@ -0,0 +1,37 @@
package testsuite
import (
"testing"
"forge.cadoles.com/cadoles/go-emlid/reach/client/logger"
)
type Logger struct {
t *testing.T
}
// Debug implements logger.Logger.
func (l *Logger) Debug(msg string, args ...any) {
l.t.Logf(msg, args...)
}
// Error implements logger.Logger.
func (l *Logger) Error(msg string, args ...any) {
l.t.Logf(msg, args...)
}
// Info implements logger.Logger.
func (l *Logger) Info(msg string, args ...any) {
l.t.Logf(msg, args...)
}
// Warn implements logger.Logger.
func (l *Logger) Warn(msg string, args ...any) {
l.t.Logf(msg, args...)
}
func NewLogger(t *testing.T) *Logger {
return &Logger{t}
}
var _ logger.Logger = &Logger{}