...

Source file src/github.com/go-kivik/kivik/v4/mockdb/clientmock_gen.go

Documentation: github.com/go-kivik/kivik/v4/mockdb

     1  /* This file is auto-generated. Do not edit it! */
     2  
     3  package mockdb
     4  
     5  import (
     6  	kivik "github.com/go-kivik/kivik/v4"
     7  	"github.com/go-kivik/kivik/v4/driver"
     8  )
     9  
    10  var _ = kivik.EndKeySuffix // To ensure a reference to kivik package
    11  var _ = (*driver.Attachment)(nil)
    12  
    13  // ExpectAllDBs queues an expectation that AllDBs will be called.
    14  func (c *Client) ExpectAllDBs() *ExpectedAllDBs {
    15  	e := &ExpectedAllDBs{}
    16  	c.expected = append(c.expected, e)
    17  	return e
    18  }
    19  
    20  // ExpectClose queues an expectation that Close will be called.
    21  func (c *Client) ExpectClose() *ExpectedClose {
    22  	e := &ExpectedClose{}
    23  	c.expected = append(c.expected, e)
    24  	return e
    25  }
    26  
    27  // ExpectClusterSetup queues an expectation that ClusterSetup will be called.
    28  func (c *Client) ExpectClusterSetup() *ExpectedClusterSetup {
    29  	e := &ExpectedClusterSetup{}
    30  	c.expected = append(c.expected, e)
    31  	return e
    32  }
    33  
    34  // ExpectClusterStatus queues an expectation that ClusterStatus will be called.
    35  func (c *Client) ExpectClusterStatus() *ExpectedClusterStatus {
    36  	e := &ExpectedClusterStatus{}
    37  	c.expected = append(c.expected, e)
    38  	return e
    39  }
    40  
    41  // ExpectConfigValue queues an expectation that ConfigValue will be called.
    42  func (c *Client) ExpectConfigValue() *ExpectedConfigValue {
    43  	e := &ExpectedConfigValue{}
    44  	c.expected = append(c.expected, e)
    45  	return e
    46  }
    47  
    48  // ExpectDBExists queues an expectation that DBExists will be called.
    49  func (c *Client) ExpectDBExists() *ExpectedDBExists {
    50  	e := &ExpectedDBExists{}
    51  	c.expected = append(c.expected, e)
    52  	return e
    53  }
    54  
    55  // ExpectDeleteConfigKey queues an expectation that DeleteConfigKey will be called.
    56  func (c *Client) ExpectDeleteConfigKey() *ExpectedDeleteConfigKey {
    57  	e := &ExpectedDeleteConfigKey{}
    58  	c.expected = append(c.expected, e)
    59  	return e
    60  }
    61  
    62  // ExpectDestroyDB queues an expectation that DestroyDB will be called.
    63  func (c *Client) ExpectDestroyDB() *ExpectedDestroyDB {
    64  	e := &ExpectedDestroyDB{}
    65  	c.expected = append(c.expected, e)
    66  	return e
    67  }
    68  
    69  // ExpectPing queues an expectation that Ping will be called.
    70  func (c *Client) ExpectPing() *ExpectedPing {
    71  	e := &ExpectedPing{}
    72  	c.expected = append(c.expected, e)
    73  	return e
    74  }
    75  
    76  // ExpectSetConfigValue queues an expectation that SetConfigValue will be called.
    77  func (c *Client) ExpectSetConfigValue() *ExpectedSetConfigValue {
    78  	e := &ExpectedSetConfigValue{}
    79  	c.expected = append(c.expected, e)
    80  	return e
    81  }
    82  
    83  // ExpectAllDBsStats queues an expectation that AllDBsStats will be called.
    84  func (c *Client) ExpectAllDBsStats() *ExpectedAllDBsStats {
    85  	e := &ExpectedAllDBsStats{}
    86  	c.expected = append(c.expected, e)
    87  	return e
    88  }
    89  
    90  // ExpectConfig queues an expectation that Config will be called.
    91  func (c *Client) ExpectConfig() *ExpectedConfig {
    92  	e := &ExpectedConfig{}
    93  	c.expected = append(c.expected, e)
    94  	return e
    95  }
    96  
    97  // ExpectConfigSection queues an expectation that ConfigSection will be called.
    98  func (c *Client) ExpectConfigSection() *ExpectedConfigSection {
    99  	e := &ExpectedConfigSection{}
   100  	c.expected = append(c.expected, e)
   101  	return e
   102  }
   103  
   104  // ExpectDB queues an expectation that DB will be called.
   105  func (c *Client) ExpectDB() *ExpectedDB {
   106  	e := &ExpectedDB{
   107  		ret0: &DB{},
   108  	}
   109  	c.expected = append(c.expected, e)
   110  	return e
   111  }
   112  
   113  // ExpectDBUpdates queues an expectation that DBUpdates will be called.
   114  func (c *Client) ExpectDBUpdates() *ExpectedDBUpdates {
   115  	e := &ExpectedDBUpdates{
   116  		ret0: &Updates{},
   117  	}
   118  	c.expected = append(c.expected, e)
   119  	return e
   120  }
   121  
   122  // ExpectDBsStats queues an expectation that DBsStats will be called.
   123  func (c *Client) ExpectDBsStats() *ExpectedDBsStats {
   124  	e := &ExpectedDBsStats{}
   125  	c.expected = append(c.expected, e)
   126  	return e
   127  }
   128  
   129  // ExpectGetReplications queues an expectation that GetReplications will be called.
   130  func (c *Client) ExpectGetReplications() *ExpectedGetReplications {
   131  	e := &ExpectedGetReplications{}
   132  	c.expected = append(c.expected, e)
   133  	return e
   134  }
   135  
   136  // ExpectMembership queues an expectation that Membership will be called.
   137  func (c *Client) ExpectMembership() *ExpectedMembership {
   138  	e := &ExpectedMembership{}
   139  	c.expected = append(c.expected, e)
   140  	return e
   141  }
   142  
   143  // ExpectReplicate queues an expectation that Replicate will be called.
   144  func (c *Client) ExpectReplicate() *ExpectedReplicate {
   145  	e := &ExpectedReplicate{}
   146  	c.expected = append(c.expected, e)
   147  	return e
   148  }
   149  
   150  // ExpectSession queues an expectation that Session will be called.
   151  func (c *Client) ExpectSession() *ExpectedSession {
   152  	e := &ExpectedSession{}
   153  	c.expected = append(c.expected, e)
   154  	return e
   155  }
   156  
   157  // ExpectVersion queues an expectation that Version will be called.
   158  func (c *Client) ExpectVersion() *ExpectedVersion {
   159  	e := &ExpectedVersion{}
   160  	c.expected = append(c.expected, e)
   161  	return e
   162  }
   163  

View as plain text