github.com/thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/cf/terminal/terminalfakes/fake_ui.go (about)

     1  // Code generated by counterfeiter. DO NOT EDIT.
     2  package terminalfakes
     3  
     4  import (
     5  	"io"
     6  	"sync"
     7  
     8  	"code.cloudfoundry.org/cli/cf/configuration/coreconfig"
     9  	"code.cloudfoundry.org/cli/cf/terminal"
    10  )
    11  
    12  type FakeUI struct {
    13  	AskStub        func(string) string
    14  	askMutex       sync.RWMutex
    15  	askArgsForCall []struct {
    16  		arg1 string
    17  	}
    18  	askReturns struct {
    19  		result1 string
    20  	}
    21  	askReturnsOnCall map[int]struct {
    22  		result1 string
    23  	}
    24  	AskForPasswordStub        func(string) string
    25  	askForPasswordMutex       sync.RWMutex
    26  	askForPasswordArgsForCall []struct {
    27  		arg1 string
    28  	}
    29  	askForPasswordReturns struct {
    30  		result1 string
    31  	}
    32  	askForPasswordReturnsOnCall map[int]struct {
    33  		result1 string
    34  	}
    35  	ConfirmStub        func(string) bool
    36  	confirmMutex       sync.RWMutex
    37  	confirmArgsForCall []struct {
    38  		arg1 string
    39  	}
    40  	confirmReturns struct {
    41  		result1 bool
    42  	}
    43  	confirmReturnsOnCall map[int]struct {
    44  		result1 bool
    45  	}
    46  	ConfirmDeleteStub        func(string, string) bool
    47  	confirmDeleteMutex       sync.RWMutex
    48  	confirmDeleteArgsForCall []struct {
    49  		arg1 string
    50  		arg2 string
    51  	}
    52  	confirmDeleteReturns struct {
    53  		result1 bool
    54  	}
    55  	confirmDeleteReturnsOnCall map[int]struct {
    56  		result1 bool
    57  	}
    58  	ConfirmDeleteWithAssociationsStub        func(string, string) bool
    59  	confirmDeleteWithAssociationsMutex       sync.RWMutex
    60  	confirmDeleteWithAssociationsArgsForCall []struct {
    61  		arg1 string
    62  		arg2 string
    63  	}
    64  	confirmDeleteWithAssociationsReturns struct {
    65  		result1 bool
    66  	}
    67  	confirmDeleteWithAssociationsReturnsOnCall map[int]struct {
    68  		result1 bool
    69  	}
    70  	FailedStub        func(string, ...interface{})
    71  	failedMutex       sync.RWMutex
    72  	failedArgsForCall []struct {
    73  		arg1 string
    74  		arg2 []interface{}
    75  	}
    76  	LoadingIndicationStub        func()
    77  	loadingIndicationMutex       sync.RWMutex
    78  	loadingIndicationArgsForCall []struct {
    79  	}
    80  	NotifyUpdateIfNeededStub        func(coreconfig.Reader)
    81  	notifyUpdateIfNeededMutex       sync.RWMutex
    82  	notifyUpdateIfNeededArgsForCall []struct {
    83  		arg1 coreconfig.Reader
    84  	}
    85  	OkStub        func()
    86  	okMutex       sync.RWMutex
    87  	okArgsForCall []struct {
    88  	}
    89  	PrintCapturingNoOutputStub        func(string, ...interface{})
    90  	printCapturingNoOutputMutex       sync.RWMutex
    91  	printCapturingNoOutputArgsForCall []struct {
    92  		arg1 string
    93  		arg2 []interface{}
    94  	}
    95  	PrintPaginatorStub        func([]string, error)
    96  	printPaginatorMutex       sync.RWMutex
    97  	printPaginatorArgsForCall []struct {
    98  		arg1 []string
    99  		arg2 error
   100  	}
   101  	SayStub        func(string, ...interface{})
   102  	sayMutex       sync.RWMutex
   103  	sayArgsForCall []struct {
   104  		arg1 string
   105  		arg2 []interface{}
   106  	}
   107  	ShowConfigurationStub        func(coreconfig.Reader) error
   108  	showConfigurationMutex       sync.RWMutex
   109  	showConfigurationArgsForCall []struct {
   110  		arg1 coreconfig.Reader
   111  	}
   112  	showConfigurationReturns struct {
   113  		result1 error
   114  	}
   115  	showConfigurationReturnsOnCall map[int]struct {
   116  		result1 error
   117  	}
   118  	TableStub        func([]string) *terminal.UITable
   119  	tableMutex       sync.RWMutex
   120  	tableArgsForCall []struct {
   121  		arg1 []string
   122  	}
   123  	tableReturns struct {
   124  		result1 *terminal.UITable
   125  	}
   126  	tableReturnsOnCall map[int]struct {
   127  		result1 *terminal.UITable
   128  	}
   129  	WarnStub        func(string, ...interface{})
   130  	warnMutex       sync.RWMutex
   131  	warnArgsForCall []struct {
   132  		arg1 string
   133  		arg2 []interface{}
   134  	}
   135  	WriterStub        func() io.Writer
   136  	writerMutex       sync.RWMutex
   137  	writerArgsForCall []struct {
   138  	}
   139  	writerReturns struct {
   140  		result1 io.Writer
   141  	}
   142  	writerReturnsOnCall map[int]struct {
   143  		result1 io.Writer
   144  	}
   145  	invocations      map[string][][]interface{}
   146  	invocationsMutex sync.RWMutex
   147  }
   148  
   149  func (fake *FakeUI) Ask(arg1 string) string {
   150  	fake.askMutex.Lock()
   151  	ret, specificReturn := fake.askReturnsOnCall[len(fake.askArgsForCall)]
   152  	fake.askArgsForCall = append(fake.askArgsForCall, struct {
   153  		arg1 string
   154  	}{arg1})
   155  	fake.recordInvocation("Ask", []interface{}{arg1})
   156  	fake.askMutex.Unlock()
   157  	if fake.AskStub != nil {
   158  		return fake.AskStub(arg1)
   159  	}
   160  	if specificReturn {
   161  		return ret.result1
   162  	}
   163  	fakeReturns := fake.askReturns
   164  	return fakeReturns.result1
   165  }
   166  
   167  func (fake *FakeUI) AskCallCount() int {
   168  	fake.askMutex.RLock()
   169  	defer fake.askMutex.RUnlock()
   170  	return len(fake.askArgsForCall)
   171  }
   172  
   173  func (fake *FakeUI) AskCalls(stub func(string) string) {
   174  	fake.askMutex.Lock()
   175  	defer fake.askMutex.Unlock()
   176  	fake.AskStub = stub
   177  }
   178  
   179  func (fake *FakeUI) AskArgsForCall(i int) string {
   180  	fake.askMutex.RLock()
   181  	defer fake.askMutex.RUnlock()
   182  	argsForCall := fake.askArgsForCall[i]
   183  	return argsForCall.arg1
   184  }
   185  
   186  func (fake *FakeUI) AskReturns(result1 string) {
   187  	fake.askMutex.Lock()
   188  	defer fake.askMutex.Unlock()
   189  	fake.AskStub = nil
   190  	fake.askReturns = struct {
   191  		result1 string
   192  	}{result1}
   193  }
   194  
   195  func (fake *FakeUI) AskReturnsOnCall(i int, result1 string) {
   196  	fake.askMutex.Lock()
   197  	defer fake.askMutex.Unlock()
   198  	fake.AskStub = nil
   199  	if fake.askReturnsOnCall == nil {
   200  		fake.askReturnsOnCall = make(map[int]struct {
   201  			result1 string
   202  		})
   203  	}
   204  	fake.askReturnsOnCall[i] = struct {
   205  		result1 string
   206  	}{result1}
   207  }
   208  
   209  func (fake *FakeUI) AskForPassword(arg1 string) string {
   210  	fake.askForPasswordMutex.Lock()
   211  	ret, specificReturn := fake.askForPasswordReturnsOnCall[len(fake.askForPasswordArgsForCall)]
   212  	fake.askForPasswordArgsForCall = append(fake.askForPasswordArgsForCall, struct {
   213  		arg1 string
   214  	}{arg1})
   215  	fake.recordInvocation("AskForPassword", []interface{}{arg1})
   216  	fake.askForPasswordMutex.Unlock()
   217  	if fake.AskForPasswordStub != nil {
   218  		return fake.AskForPasswordStub(arg1)
   219  	}
   220  	if specificReturn {
   221  		return ret.result1
   222  	}
   223  	fakeReturns := fake.askForPasswordReturns
   224  	return fakeReturns.result1
   225  }
   226  
   227  func (fake *FakeUI) AskForPasswordCallCount() int {
   228  	fake.askForPasswordMutex.RLock()
   229  	defer fake.askForPasswordMutex.RUnlock()
   230  	return len(fake.askForPasswordArgsForCall)
   231  }
   232  
   233  func (fake *FakeUI) AskForPasswordCalls(stub func(string) string) {
   234  	fake.askForPasswordMutex.Lock()
   235  	defer fake.askForPasswordMutex.Unlock()
   236  	fake.AskForPasswordStub = stub
   237  }
   238  
   239  func (fake *FakeUI) AskForPasswordArgsForCall(i int) string {
   240  	fake.askForPasswordMutex.RLock()
   241  	defer fake.askForPasswordMutex.RUnlock()
   242  	argsForCall := fake.askForPasswordArgsForCall[i]
   243  	return argsForCall.arg1
   244  }
   245  
   246  func (fake *FakeUI) AskForPasswordReturns(result1 string) {
   247  	fake.askForPasswordMutex.Lock()
   248  	defer fake.askForPasswordMutex.Unlock()
   249  	fake.AskForPasswordStub = nil
   250  	fake.askForPasswordReturns = struct {
   251  		result1 string
   252  	}{result1}
   253  }
   254  
   255  func (fake *FakeUI) AskForPasswordReturnsOnCall(i int, result1 string) {
   256  	fake.askForPasswordMutex.Lock()
   257  	defer fake.askForPasswordMutex.Unlock()
   258  	fake.AskForPasswordStub = nil
   259  	if fake.askForPasswordReturnsOnCall == nil {
   260  		fake.askForPasswordReturnsOnCall = make(map[int]struct {
   261  			result1 string
   262  		})
   263  	}
   264  	fake.askForPasswordReturnsOnCall[i] = struct {
   265  		result1 string
   266  	}{result1}
   267  }
   268  
   269  func (fake *FakeUI) Confirm(arg1 string) bool {
   270  	fake.confirmMutex.Lock()
   271  	ret, specificReturn := fake.confirmReturnsOnCall[len(fake.confirmArgsForCall)]
   272  	fake.confirmArgsForCall = append(fake.confirmArgsForCall, struct {
   273  		arg1 string
   274  	}{arg1})
   275  	fake.recordInvocation("Confirm", []interface{}{arg1})
   276  	fake.confirmMutex.Unlock()
   277  	if fake.ConfirmStub != nil {
   278  		return fake.ConfirmStub(arg1)
   279  	}
   280  	if specificReturn {
   281  		return ret.result1
   282  	}
   283  	fakeReturns := fake.confirmReturns
   284  	return fakeReturns.result1
   285  }
   286  
   287  func (fake *FakeUI) ConfirmCallCount() int {
   288  	fake.confirmMutex.RLock()
   289  	defer fake.confirmMutex.RUnlock()
   290  	return len(fake.confirmArgsForCall)
   291  }
   292  
   293  func (fake *FakeUI) ConfirmCalls(stub func(string) bool) {
   294  	fake.confirmMutex.Lock()
   295  	defer fake.confirmMutex.Unlock()
   296  	fake.ConfirmStub = stub
   297  }
   298  
   299  func (fake *FakeUI) ConfirmArgsForCall(i int) string {
   300  	fake.confirmMutex.RLock()
   301  	defer fake.confirmMutex.RUnlock()
   302  	argsForCall := fake.confirmArgsForCall[i]
   303  	return argsForCall.arg1
   304  }
   305  
   306  func (fake *FakeUI) ConfirmReturns(result1 bool) {
   307  	fake.confirmMutex.Lock()
   308  	defer fake.confirmMutex.Unlock()
   309  	fake.ConfirmStub = nil
   310  	fake.confirmReturns = struct {
   311  		result1 bool
   312  	}{result1}
   313  }
   314  
   315  func (fake *FakeUI) ConfirmReturnsOnCall(i int, result1 bool) {
   316  	fake.confirmMutex.Lock()
   317  	defer fake.confirmMutex.Unlock()
   318  	fake.ConfirmStub = nil
   319  	if fake.confirmReturnsOnCall == nil {
   320  		fake.confirmReturnsOnCall = make(map[int]struct {
   321  			result1 bool
   322  		})
   323  	}
   324  	fake.confirmReturnsOnCall[i] = struct {
   325  		result1 bool
   326  	}{result1}
   327  }
   328  
   329  func (fake *FakeUI) ConfirmDelete(arg1 string, arg2 string) bool {
   330  	fake.confirmDeleteMutex.Lock()
   331  	ret, specificReturn := fake.confirmDeleteReturnsOnCall[len(fake.confirmDeleteArgsForCall)]
   332  	fake.confirmDeleteArgsForCall = append(fake.confirmDeleteArgsForCall, struct {
   333  		arg1 string
   334  		arg2 string
   335  	}{arg1, arg2})
   336  	fake.recordInvocation("ConfirmDelete", []interface{}{arg1, arg2})
   337  	fake.confirmDeleteMutex.Unlock()
   338  	if fake.ConfirmDeleteStub != nil {
   339  		return fake.ConfirmDeleteStub(arg1, arg2)
   340  	}
   341  	if specificReturn {
   342  		return ret.result1
   343  	}
   344  	fakeReturns := fake.confirmDeleteReturns
   345  	return fakeReturns.result1
   346  }
   347  
   348  func (fake *FakeUI) ConfirmDeleteCallCount() int {
   349  	fake.confirmDeleteMutex.RLock()
   350  	defer fake.confirmDeleteMutex.RUnlock()
   351  	return len(fake.confirmDeleteArgsForCall)
   352  }
   353  
   354  func (fake *FakeUI) ConfirmDeleteCalls(stub func(string, string) bool) {
   355  	fake.confirmDeleteMutex.Lock()
   356  	defer fake.confirmDeleteMutex.Unlock()
   357  	fake.ConfirmDeleteStub = stub
   358  }
   359  
   360  func (fake *FakeUI) ConfirmDeleteArgsForCall(i int) (string, string) {
   361  	fake.confirmDeleteMutex.RLock()
   362  	defer fake.confirmDeleteMutex.RUnlock()
   363  	argsForCall := fake.confirmDeleteArgsForCall[i]
   364  	return argsForCall.arg1, argsForCall.arg2
   365  }
   366  
   367  func (fake *FakeUI) ConfirmDeleteReturns(result1 bool) {
   368  	fake.confirmDeleteMutex.Lock()
   369  	defer fake.confirmDeleteMutex.Unlock()
   370  	fake.ConfirmDeleteStub = nil
   371  	fake.confirmDeleteReturns = struct {
   372  		result1 bool
   373  	}{result1}
   374  }
   375  
   376  func (fake *FakeUI) ConfirmDeleteReturnsOnCall(i int, result1 bool) {
   377  	fake.confirmDeleteMutex.Lock()
   378  	defer fake.confirmDeleteMutex.Unlock()
   379  	fake.ConfirmDeleteStub = nil
   380  	if fake.confirmDeleteReturnsOnCall == nil {
   381  		fake.confirmDeleteReturnsOnCall = make(map[int]struct {
   382  			result1 bool
   383  		})
   384  	}
   385  	fake.confirmDeleteReturnsOnCall[i] = struct {
   386  		result1 bool
   387  	}{result1}
   388  }
   389  
   390  func (fake *FakeUI) ConfirmDeleteWithAssociations(arg1 string, arg2 string) bool {
   391  	fake.confirmDeleteWithAssociationsMutex.Lock()
   392  	ret, specificReturn := fake.confirmDeleteWithAssociationsReturnsOnCall[len(fake.confirmDeleteWithAssociationsArgsForCall)]
   393  	fake.confirmDeleteWithAssociationsArgsForCall = append(fake.confirmDeleteWithAssociationsArgsForCall, struct {
   394  		arg1 string
   395  		arg2 string
   396  	}{arg1, arg2})
   397  	fake.recordInvocation("ConfirmDeleteWithAssociations", []interface{}{arg1, arg2})
   398  	fake.confirmDeleteWithAssociationsMutex.Unlock()
   399  	if fake.ConfirmDeleteWithAssociationsStub != nil {
   400  		return fake.ConfirmDeleteWithAssociationsStub(arg1, arg2)
   401  	}
   402  	if specificReturn {
   403  		return ret.result1
   404  	}
   405  	fakeReturns := fake.confirmDeleteWithAssociationsReturns
   406  	return fakeReturns.result1
   407  }
   408  
   409  func (fake *FakeUI) ConfirmDeleteWithAssociationsCallCount() int {
   410  	fake.confirmDeleteWithAssociationsMutex.RLock()
   411  	defer fake.confirmDeleteWithAssociationsMutex.RUnlock()
   412  	return len(fake.confirmDeleteWithAssociationsArgsForCall)
   413  }
   414  
   415  func (fake *FakeUI) ConfirmDeleteWithAssociationsCalls(stub func(string, string) bool) {
   416  	fake.confirmDeleteWithAssociationsMutex.Lock()
   417  	defer fake.confirmDeleteWithAssociationsMutex.Unlock()
   418  	fake.ConfirmDeleteWithAssociationsStub = stub
   419  }
   420  
   421  func (fake *FakeUI) ConfirmDeleteWithAssociationsArgsForCall(i int) (string, string) {
   422  	fake.confirmDeleteWithAssociationsMutex.RLock()
   423  	defer fake.confirmDeleteWithAssociationsMutex.RUnlock()
   424  	argsForCall := fake.confirmDeleteWithAssociationsArgsForCall[i]
   425  	return argsForCall.arg1, argsForCall.arg2
   426  }
   427  
   428  func (fake *FakeUI) ConfirmDeleteWithAssociationsReturns(result1 bool) {
   429  	fake.confirmDeleteWithAssociationsMutex.Lock()
   430  	defer fake.confirmDeleteWithAssociationsMutex.Unlock()
   431  	fake.ConfirmDeleteWithAssociationsStub = nil
   432  	fake.confirmDeleteWithAssociationsReturns = struct {
   433  		result1 bool
   434  	}{result1}
   435  }
   436  
   437  func (fake *FakeUI) ConfirmDeleteWithAssociationsReturnsOnCall(i int, result1 bool) {
   438  	fake.confirmDeleteWithAssociationsMutex.Lock()
   439  	defer fake.confirmDeleteWithAssociationsMutex.Unlock()
   440  	fake.ConfirmDeleteWithAssociationsStub = nil
   441  	if fake.confirmDeleteWithAssociationsReturnsOnCall == nil {
   442  		fake.confirmDeleteWithAssociationsReturnsOnCall = make(map[int]struct {
   443  			result1 bool
   444  		})
   445  	}
   446  	fake.confirmDeleteWithAssociationsReturnsOnCall[i] = struct {
   447  		result1 bool
   448  	}{result1}
   449  }
   450  
   451  func (fake *FakeUI) Failed(arg1 string, arg2 ...interface{}) {
   452  	fake.failedMutex.Lock()
   453  	fake.failedArgsForCall = append(fake.failedArgsForCall, struct {
   454  		arg1 string
   455  		arg2 []interface{}
   456  	}{arg1, arg2})
   457  	fake.recordInvocation("Failed", []interface{}{arg1, arg2})
   458  	fake.failedMutex.Unlock()
   459  	if fake.FailedStub != nil {
   460  		fake.FailedStub(arg1, arg2...)
   461  	}
   462  }
   463  
   464  func (fake *FakeUI) FailedCallCount() int {
   465  	fake.failedMutex.RLock()
   466  	defer fake.failedMutex.RUnlock()
   467  	return len(fake.failedArgsForCall)
   468  }
   469  
   470  func (fake *FakeUI) FailedCalls(stub func(string, ...interface{})) {
   471  	fake.failedMutex.Lock()
   472  	defer fake.failedMutex.Unlock()
   473  	fake.FailedStub = stub
   474  }
   475  
   476  func (fake *FakeUI) FailedArgsForCall(i int) (string, []interface{}) {
   477  	fake.failedMutex.RLock()
   478  	defer fake.failedMutex.RUnlock()
   479  	argsForCall := fake.failedArgsForCall[i]
   480  	return argsForCall.arg1, argsForCall.arg2
   481  }
   482  
   483  func (fake *FakeUI) LoadingIndication() {
   484  	fake.loadingIndicationMutex.Lock()
   485  	fake.loadingIndicationArgsForCall = append(fake.loadingIndicationArgsForCall, struct {
   486  	}{})
   487  	fake.recordInvocation("LoadingIndication", []interface{}{})
   488  	fake.loadingIndicationMutex.Unlock()
   489  	if fake.LoadingIndicationStub != nil {
   490  		fake.LoadingIndicationStub()
   491  	}
   492  }
   493  
   494  func (fake *FakeUI) LoadingIndicationCallCount() int {
   495  	fake.loadingIndicationMutex.RLock()
   496  	defer fake.loadingIndicationMutex.RUnlock()
   497  	return len(fake.loadingIndicationArgsForCall)
   498  }
   499  
   500  func (fake *FakeUI) LoadingIndicationCalls(stub func()) {
   501  	fake.loadingIndicationMutex.Lock()
   502  	defer fake.loadingIndicationMutex.Unlock()
   503  	fake.LoadingIndicationStub = stub
   504  }
   505  
   506  func (fake *FakeUI) NotifyUpdateIfNeeded(arg1 coreconfig.Reader) {
   507  	fake.notifyUpdateIfNeededMutex.Lock()
   508  	fake.notifyUpdateIfNeededArgsForCall = append(fake.notifyUpdateIfNeededArgsForCall, struct {
   509  		arg1 coreconfig.Reader
   510  	}{arg1})
   511  	fake.recordInvocation("NotifyUpdateIfNeeded", []interface{}{arg1})
   512  	fake.notifyUpdateIfNeededMutex.Unlock()
   513  	if fake.NotifyUpdateIfNeededStub != nil {
   514  		fake.NotifyUpdateIfNeededStub(arg1)
   515  	}
   516  }
   517  
   518  func (fake *FakeUI) NotifyUpdateIfNeededCallCount() int {
   519  	fake.notifyUpdateIfNeededMutex.RLock()
   520  	defer fake.notifyUpdateIfNeededMutex.RUnlock()
   521  	return len(fake.notifyUpdateIfNeededArgsForCall)
   522  }
   523  
   524  func (fake *FakeUI) NotifyUpdateIfNeededCalls(stub func(coreconfig.Reader)) {
   525  	fake.notifyUpdateIfNeededMutex.Lock()
   526  	defer fake.notifyUpdateIfNeededMutex.Unlock()
   527  	fake.NotifyUpdateIfNeededStub = stub
   528  }
   529  
   530  func (fake *FakeUI) NotifyUpdateIfNeededArgsForCall(i int) coreconfig.Reader {
   531  	fake.notifyUpdateIfNeededMutex.RLock()
   532  	defer fake.notifyUpdateIfNeededMutex.RUnlock()
   533  	argsForCall := fake.notifyUpdateIfNeededArgsForCall[i]
   534  	return argsForCall.arg1
   535  }
   536  
   537  func (fake *FakeUI) Ok() {
   538  	fake.okMutex.Lock()
   539  	fake.okArgsForCall = append(fake.okArgsForCall, struct {
   540  	}{})
   541  	fake.recordInvocation("Ok", []interface{}{})
   542  	fake.okMutex.Unlock()
   543  	if fake.OkStub != nil {
   544  		fake.OkStub()
   545  	}
   546  }
   547  
   548  func (fake *FakeUI) OkCallCount() int {
   549  	fake.okMutex.RLock()
   550  	defer fake.okMutex.RUnlock()
   551  	return len(fake.okArgsForCall)
   552  }
   553  
   554  func (fake *FakeUI) OkCalls(stub func()) {
   555  	fake.okMutex.Lock()
   556  	defer fake.okMutex.Unlock()
   557  	fake.OkStub = stub
   558  }
   559  
   560  func (fake *FakeUI) PrintCapturingNoOutput(arg1 string, arg2 ...interface{}) {
   561  	fake.printCapturingNoOutputMutex.Lock()
   562  	fake.printCapturingNoOutputArgsForCall = append(fake.printCapturingNoOutputArgsForCall, struct {
   563  		arg1 string
   564  		arg2 []interface{}
   565  	}{arg1, arg2})
   566  	fake.recordInvocation("PrintCapturingNoOutput", []interface{}{arg1, arg2})
   567  	fake.printCapturingNoOutputMutex.Unlock()
   568  	if fake.PrintCapturingNoOutputStub != nil {
   569  		fake.PrintCapturingNoOutputStub(arg1, arg2...)
   570  	}
   571  }
   572  
   573  func (fake *FakeUI) PrintCapturingNoOutputCallCount() int {
   574  	fake.printCapturingNoOutputMutex.RLock()
   575  	defer fake.printCapturingNoOutputMutex.RUnlock()
   576  	return len(fake.printCapturingNoOutputArgsForCall)
   577  }
   578  
   579  func (fake *FakeUI) PrintCapturingNoOutputCalls(stub func(string, ...interface{})) {
   580  	fake.printCapturingNoOutputMutex.Lock()
   581  	defer fake.printCapturingNoOutputMutex.Unlock()
   582  	fake.PrintCapturingNoOutputStub = stub
   583  }
   584  
   585  func (fake *FakeUI) PrintCapturingNoOutputArgsForCall(i int) (string, []interface{}) {
   586  	fake.printCapturingNoOutputMutex.RLock()
   587  	defer fake.printCapturingNoOutputMutex.RUnlock()
   588  	argsForCall := fake.printCapturingNoOutputArgsForCall[i]
   589  	return argsForCall.arg1, argsForCall.arg2
   590  }
   591  
   592  func (fake *FakeUI) PrintPaginator(arg1 []string, arg2 error) {
   593  	var arg1Copy []string
   594  	if arg1 != nil {
   595  		arg1Copy = make([]string, len(arg1))
   596  		copy(arg1Copy, arg1)
   597  	}
   598  	fake.printPaginatorMutex.Lock()
   599  	fake.printPaginatorArgsForCall = append(fake.printPaginatorArgsForCall, struct {
   600  		arg1 []string
   601  		arg2 error
   602  	}{arg1Copy, arg2})
   603  	fake.recordInvocation("PrintPaginator", []interface{}{arg1Copy, arg2})
   604  	fake.printPaginatorMutex.Unlock()
   605  	if fake.PrintPaginatorStub != nil {
   606  		fake.PrintPaginatorStub(arg1, arg2)
   607  	}
   608  }
   609  
   610  func (fake *FakeUI) PrintPaginatorCallCount() int {
   611  	fake.printPaginatorMutex.RLock()
   612  	defer fake.printPaginatorMutex.RUnlock()
   613  	return len(fake.printPaginatorArgsForCall)
   614  }
   615  
   616  func (fake *FakeUI) PrintPaginatorCalls(stub func([]string, error)) {
   617  	fake.printPaginatorMutex.Lock()
   618  	defer fake.printPaginatorMutex.Unlock()
   619  	fake.PrintPaginatorStub = stub
   620  }
   621  
   622  func (fake *FakeUI) PrintPaginatorArgsForCall(i int) ([]string, error) {
   623  	fake.printPaginatorMutex.RLock()
   624  	defer fake.printPaginatorMutex.RUnlock()
   625  	argsForCall := fake.printPaginatorArgsForCall[i]
   626  	return argsForCall.arg1, argsForCall.arg2
   627  }
   628  
   629  func (fake *FakeUI) Say(arg1 string, arg2 ...interface{}) {
   630  	fake.sayMutex.Lock()
   631  	fake.sayArgsForCall = append(fake.sayArgsForCall, struct {
   632  		arg1 string
   633  		arg2 []interface{}
   634  	}{arg1, arg2})
   635  	fake.recordInvocation("Say", []interface{}{arg1, arg2})
   636  	fake.sayMutex.Unlock()
   637  	if fake.SayStub != nil {
   638  		fake.SayStub(arg1, arg2...)
   639  	}
   640  }
   641  
   642  func (fake *FakeUI) SayCallCount() int {
   643  	fake.sayMutex.RLock()
   644  	defer fake.sayMutex.RUnlock()
   645  	return len(fake.sayArgsForCall)
   646  }
   647  
   648  func (fake *FakeUI) SayCalls(stub func(string, ...interface{})) {
   649  	fake.sayMutex.Lock()
   650  	defer fake.sayMutex.Unlock()
   651  	fake.SayStub = stub
   652  }
   653  
   654  func (fake *FakeUI) SayArgsForCall(i int) (string, []interface{}) {
   655  	fake.sayMutex.RLock()
   656  	defer fake.sayMutex.RUnlock()
   657  	argsForCall := fake.sayArgsForCall[i]
   658  	return argsForCall.arg1, argsForCall.arg2
   659  }
   660  
   661  func (fake *FakeUI) ShowConfiguration(arg1 coreconfig.Reader) error {
   662  	fake.showConfigurationMutex.Lock()
   663  	ret, specificReturn := fake.showConfigurationReturnsOnCall[len(fake.showConfigurationArgsForCall)]
   664  	fake.showConfigurationArgsForCall = append(fake.showConfigurationArgsForCall, struct {
   665  		arg1 coreconfig.Reader
   666  	}{arg1})
   667  	fake.recordInvocation("ShowConfiguration", []interface{}{arg1})
   668  	fake.showConfigurationMutex.Unlock()
   669  	if fake.ShowConfigurationStub != nil {
   670  		return fake.ShowConfigurationStub(arg1)
   671  	}
   672  	if specificReturn {
   673  		return ret.result1
   674  	}
   675  	fakeReturns := fake.showConfigurationReturns
   676  	return fakeReturns.result1
   677  }
   678  
   679  func (fake *FakeUI) ShowConfigurationCallCount() int {
   680  	fake.showConfigurationMutex.RLock()
   681  	defer fake.showConfigurationMutex.RUnlock()
   682  	return len(fake.showConfigurationArgsForCall)
   683  }
   684  
   685  func (fake *FakeUI) ShowConfigurationCalls(stub func(coreconfig.Reader) error) {
   686  	fake.showConfigurationMutex.Lock()
   687  	defer fake.showConfigurationMutex.Unlock()
   688  	fake.ShowConfigurationStub = stub
   689  }
   690  
   691  func (fake *FakeUI) ShowConfigurationArgsForCall(i int) coreconfig.Reader {
   692  	fake.showConfigurationMutex.RLock()
   693  	defer fake.showConfigurationMutex.RUnlock()
   694  	argsForCall := fake.showConfigurationArgsForCall[i]
   695  	return argsForCall.arg1
   696  }
   697  
   698  func (fake *FakeUI) ShowConfigurationReturns(result1 error) {
   699  	fake.showConfigurationMutex.Lock()
   700  	defer fake.showConfigurationMutex.Unlock()
   701  	fake.ShowConfigurationStub = nil
   702  	fake.showConfigurationReturns = struct {
   703  		result1 error
   704  	}{result1}
   705  }
   706  
   707  func (fake *FakeUI) ShowConfigurationReturnsOnCall(i int, result1 error) {
   708  	fake.showConfigurationMutex.Lock()
   709  	defer fake.showConfigurationMutex.Unlock()
   710  	fake.ShowConfigurationStub = nil
   711  	if fake.showConfigurationReturnsOnCall == nil {
   712  		fake.showConfigurationReturnsOnCall = make(map[int]struct {
   713  			result1 error
   714  		})
   715  	}
   716  	fake.showConfigurationReturnsOnCall[i] = struct {
   717  		result1 error
   718  	}{result1}
   719  }
   720  
   721  func (fake *FakeUI) Table(arg1 []string) *terminal.UITable {
   722  	var arg1Copy []string
   723  	if arg1 != nil {
   724  		arg1Copy = make([]string, len(arg1))
   725  		copy(arg1Copy, arg1)
   726  	}
   727  	fake.tableMutex.Lock()
   728  	ret, specificReturn := fake.tableReturnsOnCall[len(fake.tableArgsForCall)]
   729  	fake.tableArgsForCall = append(fake.tableArgsForCall, struct {
   730  		arg1 []string
   731  	}{arg1Copy})
   732  	fake.recordInvocation("Table", []interface{}{arg1Copy})
   733  	fake.tableMutex.Unlock()
   734  	if fake.TableStub != nil {
   735  		return fake.TableStub(arg1)
   736  	}
   737  	if specificReturn {
   738  		return ret.result1
   739  	}
   740  	fakeReturns := fake.tableReturns
   741  	return fakeReturns.result1
   742  }
   743  
   744  func (fake *FakeUI) TableCallCount() int {
   745  	fake.tableMutex.RLock()
   746  	defer fake.tableMutex.RUnlock()
   747  	return len(fake.tableArgsForCall)
   748  }
   749  
   750  func (fake *FakeUI) TableCalls(stub func([]string) *terminal.UITable) {
   751  	fake.tableMutex.Lock()
   752  	defer fake.tableMutex.Unlock()
   753  	fake.TableStub = stub
   754  }
   755  
   756  func (fake *FakeUI) TableArgsForCall(i int) []string {
   757  	fake.tableMutex.RLock()
   758  	defer fake.tableMutex.RUnlock()
   759  	argsForCall := fake.tableArgsForCall[i]
   760  	return argsForCall.arg1
   761  }
   762  
   763  func (fake *FakeUI) TableReturns(result1 *terminal.UITable) {
   764  	fake.tableMutex.Lock()
   765  	defer fake.tableMutex.Unlock()
   766  	fake.TableStub = nil
   767  	fake.tableReturns = struct {
   768  		result1 *terminal.UITable
   769  	}{result1}
   770  }
   771  
   772  func (fake *FakeUI) TableReturnsOnCall(i int, result1 *terminal.UITable) {
   773  	fake.tableMutex.Lock()
   774  	defer fake.tableMutex.Unlock()
   775  	fake.TableStub = nil
   776  	if fake.tableReturnsOnCall == nil {
   777  		fake.tableReturnsOnCall = make(map[int]struct {
   778  			result1 *terminal.UITable
   779  		})
   780  	}
   781  	fake.tableReturnsOnCall[i] = struct {
   782  		result1 *terminal.UITable
   783  	}{result1}
   784  }
   785  
   786  func (fake *FakeUI) Warn(arg1 string, arg2 ...interface{}) {
   787  	fake.warnMutex.Lock()
   788  	fake.warnArgsForCall = append(fake.warnArgsForCall, struct {
   789  		arg1 string
   790  		arg2 []interface{}
   791  	}{arg1, arg2})
   792  	fake.recordInvocation("Warn", []interface{}{arg1, arg2})
   793  	fake.warnMutex.Unlock()
   794  	if fake.WarnStub != nil {
   795  		fake.WarnStub(arg1, arg2...)
   796  	}
   797  }
   798  
   799  func (fake *FakeUI) WarnCallCount() int {
   800  	fake.warnMutex.RLock()
   801  	defer fake.warnMutex.RUnlock()
   802  	return len(fake.warnArgsForCall)
   803  }
   804  
   805  func (fake *FakeUI) WarnCalls(stub func(string, ...interface{})) {
   806  	fake.warnMutex.Lock()
   807  	defer fake.warnMutex.Unlock()
   808  	fake.WarnStub = stub
   809  }
   810  
   811  func (fake *FakeUI) WarnArgsForCall(i int) (string, []interface{}) {
   812  	fake.warnMutex.RLock()
   813  	defer fake.warnMutex.RUnlock()
   814  	argsForCall := fake.warnArgsForCall[i]
   815  	return argsForCall.arg1, argsForCall.arg2
   816  }
   817  
   818  func (fake *FakeUI) Writer() io.Writer {
   819  	fake.writerMutex.Lock()
   820  	ret, specificReturn := fake.writerReturnsOnCall[len(fake.writerArgsForCall)]
   821  	fake.writerArgsForCall = append(fake.writerArgsForCall, struct {
   822  	}{})
   823  	fake.recordInvocation("Writer", []interface{}{})
   824  	fake.writerMutex.Unlock()
   825  	if fake.WriterStub != nil {
   826  		return fake.WriterStub()
   827  	}
   828  	if specificReturn {
   829  		return ret.result1
   830  	}
   831  	fakeReturns := fake.writerReturns
   832  	return fakeReturns.result1
   833  }
   834  
   835  func (fake *FakeUI) WriterCallCount() int {
   836  	fake.writerMutex.RLock()
   837  	defer fake.writerMutex.RUnlock()
   838  	return len(fake.writerArgsForCall)
   839  }
   840  
   841  func (fake *FakeUI) WriterCalls(stub func() io.Writer) {
   842  	fake.writerMutex.Lock()
   843  	defer fake.writerMutex.Unlock()
   844  	fake.WriterStub = stub
   845  }
   846  
   847  func (fake *FakeUI) WriterReturns(result1 io.Writer) {
   848  	fake.writerMutex.Lock()
   849  	defer fake.writerMutex.Unlock()
   850  	fake.WriterStub = nil
   851  	fake.writerReturns = struct {
   852  		result1 io.Writer
   853  	}{result1}
   854  }
   855  
   856  func (fake *FakeUI) WriterReturnsOnCall(i int, result1 io.Writer) {
   857  	fake.writerMutex.Lock()
   858  	defer fake.writerMutex.Unlock()
   859  	fake.WriterStub = nil
   860  	if fake.writerReturnsOnCall == nil {
   861  		fake.writerReturnsOnCall = make(map[int]struct {
   862  			result1 io.Writer
   863  		})
   864  	}
   865  	fake.writerReturnsOnCall[i] = struct {
   866  		result1 io.Writer
   867  	}{result1}
   868  }
   869  
   870  func (fake *FakeUI) Invocations() map[string][][]interface{} {
   871  	fake.invocationsMutex.RLock()
   872  	defer fake.invocationsMutex.RUnlock()
   873  	fake.askMutex.RLock()
   874  	defer fake.askMutex.RUnlock()
   875  	fake.askForPasswordMutex.RLock()
   876  	defer fake.askForPasswordMutex.RUnlock()
   877  	fake.confirmMutex.RLock()
   878  	defer fake.confirmMutex.RUnlock()
   879  	fake.confirmDeleteMutex.RLock()
   880  	defer fake.confirmDeleteMutex.RUnlock()
   881  	fake.confirmDeleteWithAssociationsMutex.RLock()
   882  	defer fake.confirmDeleteWithAssociationsMutex.RUnlock()
   883  	fake.failedMutex.RLock()
   884  	defer fake.failedMutex.RUnlock()
   885  	fake.loadingIndicationMutex.RLock()
   886  	defer fake.loadingIndicationMutex.RUnlock()
   887  	fake.notifyUpdateIfNeededMutex.RLock()
   888  	defer fake.notifyUpdateIfNeededMutex.RUnlock()
   889  	fake.okMutex.RLock()
   890  	defer fake.okMutex.RUnlock()
   891  	fake.printCapturingNoOutputMutex.RLock()
   892  	defer fake.printCapturingNoOutputMutex.RUnlock()
   893  	fake.printPaginatorMutex.RLock()
   894  	defer fake.printPaginatorMutex.RUnlock()
   895  	fake.sayMutex.RLock()
   896  	defer fake.sayMutex.RUnlock()
   897  	fake.showConfigurationMutex.RLock()
   898  	defer fake.showConfigurationMutex.RUnlock()
   899  	fake.tableMutex.RLock()
   900  	defer fake.tableMutex.RUnlock()
   901  	fake.warnMutex.RLock()
   902  	defer fake.warnMutex.RUnlock()
   903  	fake.writerMutex.RLock()
   904  	defer fake.writerMutex.RUnlock()
   905  	copiedInvocations := map[string][][]interface{}{}
   906  	for key, value := range fake.invocations {
   907  		copiedInvocations[key] = value
   908  	}
   909  	return copiedInvocations
   910  }
   911  
   912  func (fake *FakeUI) recordInvocation(key string, args []interface{}) {
   913  	fake.invocationsMutex.Lock()
   914  	defer fake.invocationsMutex.Unlock()
   915  	if fake.invocations == nil {
   916  		fake.invocations = map[string][][]interface{}{}
   917  	}
   918  	if fake.invocations[key] == nil {
   919  		fake.invocations[key] = [][]interface{}{}
   920  	}
   921  	fake.invocations[key] = append(fake.invocations[key], args)
   922  }
   923  
   924  var _ terminal.UI = new(FakeUI)