mirror of
https://github.com/sstent/go-garminconnect.git
synced 2026-01-26 09:01:38 +00:00
16 lines
267 B
Go
16 lines
267 B
Go
package garth
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
// MockMFAPrompter is a mock implementation of MFAPrompter for testing
|
|
type MockMFAPrompter struct {
|
|
Code string
|
|
Err error
|
|
}
|
|
|
|
func (m *MockMFAPrompter) GetMFACode(ctx context.Context) (string, error) {
|
|
return m.Code, m.Err
|
|
}
|