mirror of
https://github.com/sstent/go-garminconnect.git
synced 2025-12-05 23:52:03 +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
|
|
}
|