mocks_gen.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. // Code generated by go-mockgen 1.3.7; DO NOT EDIT.
  2. //
  3. // This file was generated by running `go-mockgen` at the root of this repository.
  4. // To add additional mocks to this or another package, add a new entry to the
  5. // mockgen.yaml file in the root of this repository.
  6. package database
  7. import (
  8. "sync"
  9. auth "gogs.io/gogs/internal/auth"
  10. )
  11. // MockProvider is a mock implementation of the Provider interface (from the
  12. // package gogs.io/gogs/internal/auth) used for unit testing.
  13. type MockProvider struct {
  14. // AuthenticateFunc is an instance of a mock function object controlling
  15. // the behavior of the method Authenticate.
  16. AuthenticateFunc *ProviderAuthenticateFunc
  17. // ConfigFunc is an instance of a mock function object controlling the
  18. // behavior of the method Config.
  19. ConfigFunc *ProviderConfigFunc
  20. // HasTLSFunc is an instance of a mock function object controlling the
  21. // behavior of the method HasTLS.
  22. HasTLSFunc *ProviderHasTLSFunc
  23. // SkipTLSVerifyFunc is an instance of a mock function object
  24. // controlling the behavior of the method SkipTLSVerify.
  25. SkipTLSVerifyFunc *ProviderSkipTLSVerifyFunc
  26. // UseTLSFunc is an instance of a mock function object controlling the
  27. // behavior of the method UseTLS.
  28. UseTLSFunc *ProviderUseTLSFunc
  29. }
  30. // NewMockProvider creates a new mock of the Provider interface. All methods
  31. // return zero values for all results, unless overwritten.
  32. func NewMockProvider() *MockProvider {
  33. return &MockProvider{
  34. AuthenticateFunc: &ProviderAuthenticateFunc{
  35. defaultHook: func(string, string) (r0 *auth.ExternalAccount, r1 error) {
  36. return
  37. },
  38. },
  39. ConfigFunc: &ProviderConfigFunc{
  40. defaultHook: func() (r0 interface{}) {
  41. return
  42. },
  43. },
  44. HasTLSFunc: &ProviderHasTLSFunc{
  45. defaultHook: func() (r0 bool) {
  46. return
  47. },
  48. },
  49. SkipTLSVerifyFunc: &ProviderSkipTLSVerifyFunc{
  50. defaultHook: func() (r0 bool) {
  51. return
  52. },
  53. },
  54. UseTLSFunc: &ProviderUseTLSFunc{
  55. defaultHook: func() (r0 bool) {
  56. return
  57. },
  58. },
  59. }
  60. }
  61. // NewStrictMockProvider creates a new mock of the Provider interface. All
  62. // methods panic on invocation, unless overwritten.
  63. func NewStrictMockProvider() *MockProvider {
  64. return &MockProvider{
  65. AuthenticateFunc: &ProviderAuthenticateFunc{
  66. defaultHook: func(string, string) (*auth.ExternalAccount, error) {
  67. panic("unexpected invocation of MockProvider.Authenticate")
  68. },
  69. },
  70. ConfigFunc: &ProviderConfigFunc{
  71. defaultHook: func() interface{} {
  72. panic("unexpected invocation of MockProvider.Config")
  73. },
  74. },
  75. HasTLSFunc: &ProviderHasTLSFunc{
  76. defaultHook: func() bool {
  77. panic("unexpected invocation of MockProvider.HasTLS")
  78. },
  79. },
  80. SkipTLSVerifyFunc: &ProviderSkipTLSVerifyFunc{
  81. defaultHook: func() bool {
  82. panic("unexpected invocation of MockProvider.SkipTLSVerify")
  83. },
  84. },
  85. UseTLSFunc: &ProviderUseTLSFunc{
  86. defaultHook: func() bool {
  87. panic("unexpected invocation of MockProvider.UseTLS")
  88. },
  89. },
  90. }
  91. }
  92. // NewMockProviderFrom creates a new mock of the MockProvider interface. All
  93. // methods delegate to the given implementation, unless overwritten.
  94. func NewMockProviderFrom(i auth.Provider) *MockProvider {
  95. return &MockProvider{
  96. AuthenticateFunc: &ProviderAuthenticateFunc{
  97. defaultHook: i.Authenticate,
  98. },
  99. ConfigFunc: &ProviderConfigFunc{
  100. defaultHook: i.Config,
  101. },
  102. HasTLSFunc: &ProviderHasTLSFunc{
  103. defaultHook: i.HasTLS,
  104. },
  105. SkipTLSVerifyFunc: &ProviderSkipTLSVerifyFunc{
  106. defaultHook: i.SkipTLSVerify,
  107. },
  108. UseTLSFunc: &ProviderUseTLSFunc{
  109. defaultHook: i.UseTLS,
  110. },
  111. }
  112. }
  113. // ProviderAuthenticateFunc describes the behavior when the Authenticate
  114. // method of the parent MockProvider instance is invoked.
  115. type ProviderAuthenticateFunc struct {
  116. defaultHook func(string, string) (*auth.ExternalAccount, error)
  117. hooks []func(string, string) (*auth.ExternalAccount, error)
  118. history []ProviderAuthenticateFuncCall
  119. mutex sync.Mutex
  120. }
  121. // Authenticate delegates to the next hook function in the queue and stores
  122. // the parameter and result values of this invocation.
  123. func (m *MockProvider) Authenticate(v0 string, v1 string) (*auth.ExternalAccount, error) {
  124. r0, r1 := m.AuthenticateFunc.nextHook()(v0, v1)
  125. m.AuthenticateFunc.appendCall(ProviderAuthenticateFuncCall{v0, v1, r0, r1})
  126. return r0, r1
  127. }
  128. // SetDefaultHook sets function that is called when the Authenticate method
  129. // of the parent MockProvider instance is invoked and the hook queue is
  130. // empty.
  131. func (f *ProviderAuthenticateFunc) SetDefaultHook(hook func(string, string) (*auth.ExternalAccount, error)) {
  132. f.defaultHook = hook
  133. }
  134. // PushHook adds a function to the end of hook queue. Each invocation of the
  135. // Authenticate method of the parent MockProvider instance invokes the hook
  136. // at the front of the queue and discards it. After the queue is empty, the
  137. // default hook function is invoked for any future action.
  138. func (f *ProviderAuthenticateFunc) PushHook(hook func(string, string) (*auth.ExternalAccount, error)) {
  139. f.mutex.Lock()
  140. f.hooks = append(f.hooks, hook)
  141. f.mutex.Unlock()
  142. }
  143. // SetDefaultReturn calls SetDefaultHook with a function that returns the
  144. // given values.
  145. func (f *ProviderAuthenticateFunc) SetDefaultReturn(r0 *auth.ExternalAccount, r1 error) {
  146. f.SetDefaultHook(func(string, string) (*auth.ExternalAccount, error) {
  147. return r0, r1
  148. })
  149. }
  150. // PushReturn calls PushHook with a function that returns the given values.
  151. func (f *ProviderAuthenticateFunc) PushReturn(r0 *auth.ExternalAccount, r1 error) {
  152. f.PushHook(func(string, string) (*auth.ExternalAccount, error) {
  153. return r0, r1
  154. })
  155. }
  156. func (f *ProviderAuthenticateFunc) nextHook() func(string, string) (*auth.ExternalAccount, error) {
  157. f.mutex.Lock()
  158. defer f.mutex.Unlock()
  159. if len(f.hooks) == 0 {
  160. return f.defaultHook
  161. }
  162. hook := f.hooks[0]
  163. f.hooks = f.hooks[1:]
  164. return hook
  165. }
  166. func (f *ProviderAuthenticateFunc) appendCall(r0 ProviderAuthenticateFuncCall) {
  167. f.mutex.Lock()
  168. f.history = append(f.history, r0)
  169. f.mutex.Unlock()
  170. }
  171. // History returns a sequence of ProviderAuthenticateFuncCall objects
  172. // describing the invocations of this function.
  173. func (f *ProviderAuthenticateFunc) History() []ProviderAuthenticateFuncCall {
  174. f.mutex.Lock()
  175. history := make([]ProviderAuthenticateFuncCall, len(f.history))
  176. copy(history, f.history)
  177. f.mutex.Unlock()
  178. return history
  179. }
  180. // ProviderAuthenticateFuncCall is an object that describes an invocation of
  181. // method Authenticate on an instance of MockProvider.
  182. type ProviderAuthenticateFuncCall struct {
  183. // Arg0 is the value of the 1st argument passed to this method
  184. // invocation.
  185. Arg0 string
  186. // Arg1 is the value of the 2nd argument passed to this method
  187. // invocation.
  188. Arg1 string
  189. // Result0 is the value of the 1st result returned from this method
  190. // invocation.
  191. Result0 *auth.ExternalAccount
  192. // Result1 is the value of the 2nd result returned from this method
  193. // invocation.
  194. Result1 error
  195. }
  196. // Args returns an interface slice containing the arguments of this
  197. // invocation.
  198. func (c ProviderAuthenticateFuncCall) Args() []interface{} {
  199. return []interface{}{c.Arg0, c.Arg1}
  200. }
  201. // Results returns an interface slice containing the results of this
  202. // invocation.
  203. func (c ProviderAuthenticateFuncCall) Results() []interface{} {
  204. return []interface{}{c.Result0, c.Result1}
  205. }
  206. // ProviderConfigFunc describes the behavior when the Config method of the
  207. // parent MockProvider instance is invoked.
  208. type ProviderConfigFunc struct {
  209. defaultHook func() interface{}
  210. hooks []func() interface{}
  211. history []ProviderConfigFuncCall
  212. mutex sync.Mutex
  213. }
  214. // Config delegates to the next hook function in the queue and stores the
  215. // parameter and result values of this invocation.
  216. func (m *MockProvider) Config() interface{} {
  217. r0 := m.ConfigFunc.nextHook()()
  218. m.ConfigFunc.appendCall(ProviderConfigFuncCall{r0})
  219. return r0
  220. }
  221. // SetDefaultHook sets function that is called when the Config method of the
  222. // parent MockProvider instance is invoked and the hook queue is empty.
  223. func (f *ProviderConfigFunc) SetDefaultHook(hook func() interface{}) {
  224. f.defaultHook = hook
  225. }
  226. // PushHook adds a function to the end of hook queue. Each invocation of the
  227. // Config method of the parent MockProvider instance invokes the hook at the
  228. // front of the queue and discards it. After the queue is empty, the default
  229. // hook function is invoked for any future action.
  230. func (f *ProviderConfigFunc) PushHook(hook func() interface{}) {
  231. f.mutex.Lock()
  232. f.hooks = append(f.hooks, hook)
  233. f.mutex.Unlock()
  234. }
  235. // SetDefaultReturn calls SetDefaultHook with a function that returns the
  236. // given values.
  237. func (f *ProviderConfigFunc) SetDefaultReturn(r0 interface{}) {
  238. f.SetDefaultHook(func() interface{} {
  239. return r0
  240. })
  241. }
  242. // PushReturn calls PushHook with a function that returns the given values.
  243. func (f *ProviderConfigFunc) PushReturn(r0 interface{}) {
  244. f.PushHook(func() interface{} {
  245. return r0
  246. })
  247. }
  248. func (f *ProviderConfigFunc) nextHook() func() interface{} {
  249. f.mutex.Lock()
  250. defer f.mutex.Unlock()
  251. if len(f.hooks) == 0 {
  252. return f.defaultHook
  253. }
  254. hook := f.hooks[0]
  255. f.hooks = f.hooks[1:]
  256. return hook
  257. }
  258. func (f *ProviderConfigFunc) appendCall(r0 ProviderConfigFuncCall) {
  259. f.mutex.Lock()
  260. f.history = append(f.history, r0)
  261. f.mutex.Unlock()
  262. }
  263. // History returns a sequence of ProviderConfigFuncCall objects describing
  264. // the invocations of this function.
  265. func (f *ProviderConfigFunc) History() []ProviderConfigFuncCall {
  266. f.mutex.Lock()
  267. history := make([]ProviderConfigFuncCall, len(f.history))
  268. copy(history, f.history)
  269. f.mutex.Unlock()
  270. return history
  271. }
  272. // ProviderConfigFuncCall is an object that describes an invocation of
  273. // method Config on an instance of MockProvider.
  274. type ProviderConfigFuncCall struct {
  275. // Result0 is the value of the 1st result returned from this method
  276. // invocation.
  277. Result0 interface{}
  278. }
  279. // Args returns an interface slice containing the arguments of this
  280. // invocation.
  281. func (c ProviderConfigFuncCall) Args() []interface{} {
  282. return []interface{}{}
  283. }
  284. // Results returns an interface slice containing the results of this
  285. // invocation.
  286. func (c ProviderConfigFuncCall) Results() []interface{} {
  287. return []interface{}{c.Result0}
  288. }
  289. // ProviderHasTLSFunc describes the behavior when the HasTLS method of the
  290. // parent MockProvider instance is invoked.
  291. type ProviderHasTLSFunc struct {
  292. defaultHook func() bool
  293. hooks []func() bool
  294. history []ProviderHasTLSFuncCall
  295. mutex sync.Mutex
  296. }
  297. // HasTLS delegates to the next hook function in the queue and stores the
  298. // parameter and result values of this invocation.
  299. func (m *MockProvider) HasTLS() bool {
  300. r0 := m.HasTLSFunc.nextHook()()
  301. m.HasTLSFunc.appendCall(ProviderHasTLSFuncCall{r0})
  302. return r0
  303. }
  304. // SetDefaultHook sets function that is called when the HasTLS method of the
  305. // parent MockProvider instance is invoked and the hook queue is empty.
  306. func (f *ProviderHasTLSFunc) SetDefaultHook(hook func() bool) {
  307. f.defaultHook = hook
  308. }
  309. // PushHook adds a function to the end of hook queue. Each invocation of the
  310. // HasTLS method of the parent MockProvider instance invokes the hook at the
  311. // front of the queue and discards it. After the queue is empty, the default
  312. // hook function is invoked for any future action.
  313. func (f *ProviderHasTLSFunc) PushHook(hook func() bool) {
  314. f.mutex.Lock()
  315. f.hooks = append(f.hooks, hook)
  316. f.mutex.Unlock()
  317. }
  318. // SetDefaultReturn calls SetDefaultHook with a function that returns the
  319. // given values.
  320. func (f *ProviderHasTLSFunc) SetDefaultReturn(r0 bool) {
  321. f.SetDefaultHook(func() bool {
  322. return r0
  323. })
  324. }
  325. // PushReturn calls PushHook with a function that returns the given values.
  326. func (f *ProviderHasTLSFunc) PushReturn(r0 bool) {
  327. f.PushHook(func() bool {
  328. return r0
  329. })
  330. }
  331. func (f *ProviderHasTLSFunc) nextHook() func() bool {
  332. f.mutex.Lock()
  333. defer f.mutex.Unlock()
  334. if len(f.hooks) == 0 {
  335. return f.defaultHook
  336. }
  337. hook := f.hooks[0]
  338. f.hooks = f.hooks[1:]
  339. return hook
  340. }
  341. func (f *ProviderHasTLSFunc) appendCall(r0 ProviderHasTLSFuncCall) {
  342. f.mutex.Lock()
  343. f.history = append(f.history, r0)
  344. f.mutex.Unlock()
  345. }
  346. // History returns a sequence of ProviderHasTLSFuncCall objects describing
  347. // the invocations of this function.
  348. func (f *ProviderHasTLSFunc) History() []ProviderHasTLSFuncCall {
  349. f.mutex.Lock()
  350. history := make([]ProviderHasTLSFuncCall, len(f.history))
  351. copy(history, f.history)
  352. f.mutex.Unlock()
  353. return history
  354. }
  355. // ProviderHasTLSFuncCall is an object that describes an invocation of
  356. // method HasTLS on an instance of MockProvider.
  357. type ProviderHasTLSFuncCall struct {
  358. // Result0 is the value of the 1st result returned from this method
  359. // invocation.
  360. Result0 bool
  361. }
  362. // Args returns an interface slice containing the arguments of this
  363. // invocation.
  364. func (c ProviderHasTLSFuncCall) Args() []interface{} {
  365. return []interface{}{}
  366. }
  367. // Results returns an interface slice containing the results of this
  368. // invocation.
  369. func (c ProviderHasTLSFuncCall) Results() []interface{} {
  370. return []interface{}{c.Result0}
  371. }
  372. // ProviderSkipTLSVerifyFunc describes the behavior when the SkipTLSVerify
  373. // method of the parent MockProvider instance is invoked.
  374. type ProviderSkipTLSVerifyFunc struct {
  375. defaultHook func() bool
  376. hooks []func() bool
  377. history []ProviderSkipTLSVerifyFuncCall
  378. mutex sync.Mutex
  379. }
  380. // SkipTLSVerify delegates to the next hook function in the queue and stores
  381. // the parameter and result values of this invocation.
  382. func (m *MockProvider) SkipTLSVerify() bool {
  383. r0 := m.SkipTLSVerifyFunc.nextHook()()
  384. m.SkipTLSVerifyFunc.appendCall(ProviderSkipTLSVerifyFuncCall{r0})
  385. return r0
  386. }
  387. // SetDefaultHook sets function that is called when the SkipTLSVerify method
  388. // of the parent MockProvider instance is invoked and the hook queue is
  389. // empty.
  390. func (f *ProviderSkipTLSVerifyFunc) SetDefaultHook(hook func() bool) {
  391. f.defaultHook = hook
  392. }
  393. // PushHook adds a function to the end of hook queue. Each invocation of the
  394. // SkipTLSVerify method of the parent MockProvider instance invokes the hook
  395. // at the front of the queue and discards it. After the queue is empty, the
  396. // default hook function is invoked for any future action.
  397. func (f *ProviderSkipTLSVerifyFunc) PushHook(hook func() bool) {
  398. f.mutex.Lock()
  399. f.hooks = append(f.hooks, hook)
  400. f.mutex.Unlock()
  401. }
  402. // SetDefaultReturn calls SetDefaultHook with a function that returns the
  403. // given values.
  404. func (f *ProviderSkipTLSVerifyFunc) SetDefaultReturn(r0 bool) {
  405. f.SetDefaultHook(func() bool {
  406. return r0
  407. })
  408. }
  409. // PushReturn calls PushHook with a function that returns the given values.
  410. func (f *ProviderSkipTLSVerifyFunc) PushReturn(r0 bool) {
  411. f.PushHook(func() bool {
  412. return r0
  413. })
  414. }
  415. func (f *ProviderSkipTLSVerifyFunc) nextHook() func() bool {
  416. f.mutex.Lock()
  417. defer f.mutex.Unlock()
  418. if len(f.hooks) == 0 {
  419. return f.defaultHook
  420. }
  421. hook := f.hooks[0]
  422. f.hooks = f.hooks[1:]
  423. return hook
  424. }
  425. func (f *ProviderSkipTLSVerifyFunc) appendCall(r0 ProviderSkipTLSVerifyFuncCall) {
  426. f.mutex.Lock()
  427. f.history = append(f.history, r0)
  428. f.mutex.Unlock()
  429. }
  430. // History returns a sequence of ProviderSkipTLSVerifyFuncCall objects
  431. // describing the invocations of this function.
  432. func (f *ProviderSkipTLSVerifyFunc) History() []ProviderSkipTLSVerifyFuncCall {
  433. f.mutex.Lock()
  434. history := make([]ProviderSkipTLSVerifyFuncCall, len(f.history))
  435. copy(history, f.history)
  436. f.mutex.Unlock()
  437. return history
  438. }
  439. // ProviderSkipTLSVerifyFuncCall is an object that describes an invocation
  440. // of method SkipTLSVerify on an instance of MockProvider.
  441. type ProviderSkipTLSVerifyFuncCall struct {
  442. // Result0 is the value of the 1st result returned from this method
  443. // invocation.
  444. Result0 bool
  445. }
  446. // Args returns an interface slice containing the arguments of this
  447. // invocation.
  448. func (c ProviderSkipTLSVerifyFuncCall) Args() []interface{} {
  449. return []interface{}{}
  450. }
  451. // Results returns an interface slice containing the results of this
  452. // invocation.
  453. func (c ProviderSkipTLSVerifyFuncCall) Results() []interface{} {
  454. return []interface{}{c.Result0}
  455. }
  456. // ProviderUseTLSFunc describes the behavior when the UseTLS method of the
  457. // parent MockProvider instance is invoked.
  458. type ProviderUseTLSFunc struct {
  459. defaultHook func() bool
  460. hooks []func() bool
  461. history []ProviderUseTLSFuncCall
  462. mutex sync.Mutex
  463. }
  464. // UseTLS delegates to the next hook function in the queue and stores the
  465. // parameter and result values of this invocation.
  466. func (m *MockProvider) UseTLS() bool {
  467. r0 := m.UseTLSFunc.nextHook()()
  468. m.UseTLSFunc.appendCall(ProviderUseTLSFuncCall{r0})
  469. return r0
  470. }
  471. // SetDefaultHook sets function that is called when the UseTLS method of the
  472. // parent MockProvider instance is invoked and the hook queue is empty.
  473. func (f *ProviderUseTLSFunc) SetDefaultHook(hook func() bool) {
  474. f.defaultHook = hook
  475. }
  476. // PushHook adds a function to the end of hook queue. Each invocation of the
  477. // UseTLS method of the parent MockProvider instance invokes the hook at the
  478. // front of the queue and discards it. After the queue is empty, the default
  479. // hook function is invoked for any future action.
  480. func (f *ProviderUseTLSFunc) PushHook(hook func() bool) {
  481. f.mutex.Lock()
  482. f.hooks = append(f.hooks, hook)
  483. f.mutex.Unlock()
  484. }
  485. // SetDefaultReturn calls SetDefaultHook with a function that returns the
  486. // given values.
  487. func (f *ProviderUseTLSFunc) SetDefaultReturn(r0 bool) {
  488. f.SetDefaultHook(func() bool {
  489. return r0
  490. })
  491. }
  492. // PushReturn calls PushHook with a function that returns the given values.
  493. func (f *ProviderUseTLSFunc) PushReturn(r0 bool) {
  494. f.PushHook(func() bool {
  495. return r0
  496. })
  497. }
  498. func (f *ProviderUseTLSFunc) nextHook() func() bool {
  499. f.mutex.Lock()
  500. defer f.mutex.Unlock()
  501. if len(f.hooks) == 0 {
  502. return f.defaultHook
  503. }
  504. hook := f.hooks[0]
  505. f.hooks = f.hooks[1:]
  506. return hook
  507. }
  508. func (f *ProviderUseTLSFunc) appendCall(r0 ProviderUseTLSFuncCall) {
  509. f.mutex.Lock()
  510. f.history = append(f.history, r0)
  511. f.mutex.Unlock()
  512. }
  513. // History returns a sequence of ProviderUseTLSFuncCall objects describing
  514. // the invocations of this function.
  515. func (f *ProviderUseTLSFunc) History() []ProviderUseTLSFuncCall {
  516. f.mutex.Lock()
  517. history := make([]ProviderUseTLSFuncCall, len(f.history))
  518. copy(history, f.history)
  519. f.mutex.Unlock()
  520. return history
  521. }
  522. // ProviderUseTLSFuncCall is an object that describes an invocation of
  523. // method UseTLS on an instance of MockProvider.
  524. type ProviderUseTLSFuncCall struct {
  525. // Result0 is the value of the 1st result returned from this method
  526. // invocation.
  527. Result0 bool
  528. }
  529. // Args returns an interface slice containing the arguments of this
  530. // invocation.
  531. func (c ProviderUseTLSFuncCall) Args() []interface{} {
  532. return []interface{}{}
  533. }
  534. // Results returns an interface slice containing the results of this
  535. // invocation.
  536. func (c ProviderUseTLSFuncCall) Results() []interface{} {
  537. return []interface{}{c.Result0}
  538. }