AuthToken calls AuthTokenFunc.
()
| 171 | |
| 172 | // AuthToken calls AuthTokenFunc. |
| 173 | func (mock *PrompterMock) AuthToken() (string, error) { |
| 174 | if mock.AuthTokenFunc == nil { |
| 175 | panic("PrompterMock.AuthTokenFunc: method is nil but Prompter.AuthToken was just called") |
| 176 | } |
| 177 | callInfo := struct { |
| 178 | }{} |
| 179 | mock.lockAuthToken.Lock() |
| 180 | mock.calls.AuthToken = append(mock.calls.AuthToken, callInfo) |
| 181 | mock.lockAuthToken.Unlock() |
| 182 | return mock.AuthTokenFunc() |
| 183 | } |
| 184 | |
| 185 | // AuthTokenCalls gets all the calls that were made to AuthToken. |
| 186 | // Check the length with: |
nothing calls this directly
no outgoing calls
no test coverage detected