You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1864 lines
70 KiB

8 years ago
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <meta name="theme-color" content="#375EAB">
  7. <title>testutil - The Go Programming Language</title>
  8. <link type="text/css" rel="stylesheet" href="../../../../../../lib/godoc/style.css">
  9. <link rel="stylesheet" href="../../../../../../lib/godoc/jquery.treeview.css">
  10. <script type="text/javascript">window.initFuncs = [];</script>
  11. </head>
  12. <body>
  13. <div id='lowframe' style="position: fixed; bottom: 0; left: 0; height: 0; width: 100%; border-top: thin solid grey; background-color: white; overflow: auto;">
  14. ...
  15. </div><!-- #lowframe -->
  16. <div id="topbar" class="wide"><div class="container">
  17. <div class="top-heading" id="heading-wide"><a href="http://localhost:6060/">The Go Programming Language</a></div>
  18. <div class="top-heading" id="heading-narrow"><a href="http://localhost:6060/">Go</a></div>
  19. <a href="index.html#" id="menu-button"><span id="menu-button-arrow">&#9661;</span></a>
  20. <form method="GET" action="http://localhost:6060/search">
  21. <div id="menu">
  22. <a href="http://localhost:6060/doc/">Documents</a>
  23. <a href="http://localhost:6060/pkg/">Packages</a>
  24. <a href="http://localhost:6060/project/">The Project</a>
  25. <a href="http://localhost:6060/help/">Help</a>
  26. <a href="http://localhost:6060/blog/">Blog</a>
  27. <input type="text" id="search" name="q" class="inactive" value="Search" placeholder="Search">
  28. </div>
  29. </form>
  30. </div></div>
  31. <div id="page" class="wide">
  32. <div class="container">
  33. <h1>Package testutil</h1>
  34. <div id="nav"></div>
  35. <!--
  36. Copyright 2009 The Go Authors. All rights reserved.
  37. Use of this source code is governed by a BSD-style
  38. license that can be found in the LICENSE file.
  39. -->
  40. <!--
  41. Note: Static (i.e., not template-generated) href and id
  42. attributes start with "pkg-" to make it impossible for
  43. them to conflict with generated attributes (some of which
  44. correspond to Go identifiers).
  45. -->
  46. <script type='text/javascript'>
  47. document.ANALYSIS_DATA = null;
  48. document.CALLGRAPH = null;
  49. </script>
  50. <div id="short-nav">
  51. <dl>
  52. <dd><code>import "github.com/syndtr/goleveldb/leveldb/testutil"</code></dd>
  53. </dl>
  54. <dl>
  55. <dd><a href="index.html#pkg-overview" class="overviewLink">Overview</a></dd>
  56. <dd><a href="index.html#pkg-index" class="indexLink">Index</a></dd>
  57. </dl>
  58. </div>
  59. <!-- The package's Name is printed as title by the top-level template -->
  60. <div id="pkg-overview" class="toggleVisible">
  61. <div class="collapsed">
  62. <h2 class="toggleButton" title="Click to show Overview section">Overview ▹</h2>
  63. </div>
  64. <div class="expanded">
  65. <h2 class="toggleButton" title="Click to hide Overview section">Overview ▾</h2>
  66. </div>
  67. </div>
  68. <div id="pkg-index" class="toggleVisible">
  69. <div class="collapsed">
  70. <h2 class="toggleButton" title="Click to show Index section">Index ▹</h2>
  71. </div>
  72. <div class="expanded">
  73. <h2 class="toggleButton" title="Click to hide Index section">Index ▾</h2>
  74. <!-- Table of contents for API; must be named manual-nav to turn off auto nav. -->
  75. <div id="manual-nav">
  76. <dl>
  77. <dd><a href="index.html#AllKeyValueTesting">func AllKeyValueTesting(rnd *rand.Rand, body, setup func(KeyValue) DB, teardown func(DB))</a></dd>
  78. <dd><a href="index.html#BytesAfter">func BytesAfter(b []byte) []byte</a></dd>
  79. <dd><a href="index.html#BytesSeparator">func BytesSeparator(a, b []byte) []byte</a></dd>
  80. <dd><a href="index.html#Defer">func Defer(args ...interface{}) bool</a></dd>
  81. <dd><a href="index.html#DoDBTesting">func DoDBTesting(t *DBTesting)</a></dd>
  82. <dd><a href="index.html#DoIteratorTesting">func DoIteratorTesting(t *IteratorTesting)</a></dd>
  83. <dd><a href="index.html#KeyValueTesting">func KeyValueTesting(rnd *rand.Rand, kv KeyValue, p DB, setup func(KeyValue) DB, teardown func(DB))</a></dd>
  84. <dd><a href="index.html#Max">func Max(x, y int) int</a></dd>
  85. <dd><a href="index.html#Min">func Min(x, y int) int</a></dd>
  86. <dd><a href="index.html#NewRand">func NewRand() *rand.Rand</a></dd>
  87. <dd><a href="index.html#RandomIndex">func RandomIndex(rnd *rand.Rand, n, round int, fn func(i int))</a></dd>
  88. <dd><a href="index.html#RandomRange">func RandomRange(rnd *rand.Rand, n, round int, fn func(start, limit int))</a></dd>
  89. <dd><a href="index.html#RandomSeed">func RandomSeed() int64</a></dd>
  90. <dd><a href="index.html#RunDefer">func RunDefer(groups ...string) bool</a></dd>
  91. <dd><a href="index.html#RunSuite">func RunSuite(t GinkgoTestingT, name string)</a></dd>
  92. <dd><a href="index.html#ShuffledIndex">func ShuffledIndex(rnd *rand.Rand, n, round int, fn func(i int))</a></dd>
  93. <dd><a href="index.html#TestFind">func TestFind(db Find, kv KeyValue)</a></dd>
  94. <dd><a href="index.html#TestFindAfterLast">func TestFindAfterLast(db Find, kv KeyValue)</a></dd>
  95. <dd><a href="index.html#TestGet">func TestGet(db Get, kv KeyValue)</a></dd>
  96. <dd><a href="index.html#TestHas">func TestHas(db Has, kv KeyValue)</a></dd>
  97. <dd><a href="index.html#TestIter">func TestIter(db NewIterator, r *util.Range, kv KeyValue)</a></dd>
  98. <dd><a href="index.html#DB">type DB</a></dd>
  99. <dd><a href="index.html#DBAct">type DBAct</a></dd>
  100. <dd>&nbsp; &nbsp; <a href="index.html#DBAct.String">func (a DBAct) String() string</a></dd>
  101. <dd><a href="index.html#DBTesting">type DBTesting</a></dd>
  102. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.Delete">func (t *DBTesting) Delete(key []byte)</a></dd>
  103. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.DeleteRandom">func (t *DBTesting) DeleteRandom() bool</a></dd>
  104. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.Put">func (t *DBTesting) Put(key, value []byte)</a></dd>
  105. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.PutRandom">func (t *DBTesting) PutRandom() bool</a></dd>
  106. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.RandomAct">func (t *DBTesting) RandomAct(round int)</a></dd>
  107. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.TestAll">func (t *DBTesting) TestAll()</a></dd>
  108. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.TestAllDeleted">func (t *DBTesting) TestAllDeleted()</a></dd>
  109. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.TestAllPresent">func (t *DBTesting) TestAllPresent()</a></dd>
  110. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.TestDeletedKey">func (t *DBTesting) TestDeletedKey(key []byte)</a></dd>
  111. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.TestPresentKV">func (t *DBTesting) TestPresentKV(key, value []byte)</a></dd>
  112. <dd>&nbsp; &nbsp; <a href="index.html#DBTesting.Text">func (t *DBTesting) Text() string</a></dd>
  113. <dd><a href="index.html#Delete">type Delete</a></dd>
  114. <dd><a href="index.html#Find">type Find</a></dd>
  115. <dd><a href="index.html#Get">type Get</a></dd>
  116. <dd><a href="index.html#Has">type Has</a></dd>
  117. <dd><a href="index.html#IterAct">type IterAct</a></dd>
  118. <dd>&nbsp; &nbsp; <a href="index.html#IterAct.String">func (a IterAct) String() string</a></dd>
  119. <dd><a href="index.html#IteratorTesting">type IteratorTesting</a></dd>
  120. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.EOI">func (t *IteratorTesting) EOI()</a></dd>
  121. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.First">func (t *IteratorTesting) First()</a></dd>
  122. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.IsFirst">func (t *IteratorTesting) IsFirst() bool</a></dd>
  123. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.IsLast">func (t *IteratorTesting) IsLast() bool</a></dd>
  124. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.Last">func (t *IteratorTesting) Last()</a></dd>
  125. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.Next">func (t *IteratorTesting) Next()</a></dd>
  126. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.NextAll">func (t *IteratorTesting) NextAll()</a></dd>
  127. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.Prev">func (t *IteratorTesting) Prev()</a></dd>
  128. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.PrevAll">func (t *IteratorTesting) PrevAll()</a></dd>
  129. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.SOI">func (t *IteratorTesting) SOI()</a></dd>
  130. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.Seek">func (t *IteratorTesting) Seek(i int)</a></dd>
  131. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.SeekInexact">func (t *IteratorTesting) SeekInexact(i int)</a></dd>
  132. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.SeekKey">func (t *IteratorTesting) SeekKey(key []byte)</a></dd>
  133. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.TestKV">func (t *IteratorTesting) TestKV()</a></dd>
  134. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.Text">func (t *IteratorTesting) Text() string</a></dd>
  135. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.WalkNext">func (t *IteratorTesting) WalkNext(fn func(t *IteratorTesting))</a></dd>
  136. <dd>&nbsp; &nbsp; <a href="index.html#IteratorTesting.WalkPrev">func (t *IteratorTesting) WalkPrev(fn func(t *IteratorTesting))</a></dd>
  137. <dd><a href="index.html#KeyValue">type KeyValue</a></dd>
  138. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue_BigValue">func KeyValue_BigValue() *KeyValue</a></dd>
  139. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue_EmptyKey">func KeyValue_EmptyKey() *KeyValue</a></dd>
  140. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue_EmptyValue">func KeyValue_EmptyValue() *KeyValue</a></dd>
  141. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue_Generate">func KeyValue_Generate(rnd *rand.Rand, n, incr, minlen, maxlen, vminlen, vmaxlen int) *KeyValue</a></dd>
  142. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue_MultipleKeyValue">func KeyValue_MultipleKeyValue() *KeyValue</a></dd>
  143. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue_OneKeyValue">func KeyValue_OneKeyValue() *KeyValue</a></dd>
  144. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue_SpecialKey">func KeyValue_SpecialKey() *KeyValue</a></dd>
  145. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Clone">func (kv KeyValue) Clone() KeyValue</a></dd>
  146. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Delete">func (kv *KeyValue) Delete(key []byte) (exist bool, value []byte)</a></dd>
  147. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.DeleteIndex">func (kv *KeyValue) DeleteIndex(i int) bool</a></dd>
  148. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Get">func (kv KeyValue) Get(key []byte) (i int, exist bool)</a></dd>
  149. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.GetString">func (kv KeyValue) GetString(key string) (i int, exist bool)</a></dd>
  150. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Index">func (kv KeyValue) Index(i int) (key, value []byte)</a></dd>
  151. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IndexInexact">func (kv KeyValue) IndexInexact(i int) (key_, key, value []byte)</a></dd>
  152. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IndexOrNil">func (kv KeyValue) IndexOrNil(i int) (key, value []byte)</a></dd>
  153. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IndexString">func (kv KeyValue) IndexString(i int) (key, value string)</a></dd>
  154. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Iterate">func (kv KeyValue) Iterate(fn func(i int, key, value []byte))</a></dd>
  155. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IterateInexact">func (kv KeyValue) IterateInexact(fn func(i int, key_, key, value []byte))</a></dd>
  156. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IterateInexactString">func (kv KeyValue) IterateInexactString(fn func(i int, key_, key, value string))</a></dd>
  157. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IterateShuffled">func (kv KeyValue) IterateShuffled(rnd *rand.Rand, fn func(i int, key, value []byte))</a></dd>
  158. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IterateShuffledString">func (kv KeyValue) IterateShuffledString(rnd *rand.Rand, fn func(i int, key, value string))</a></dd>
  159. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.IterateString">func (kv KeyValue) IterateString(fn func(i int, key, value string))</a></dd>
  160. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.KeyAt">func (kv KeyValue) KeyAt(i int) []byte</a></dd>
  161. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Len">func (kv KeyValue) Len() int</a></dd>
  162. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Put">func (kv *KeyValue) Put(key, value []byte)</a></dd>
  163. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.PutString">func (kv *KeyValue) PutString(key, value string)</a></dd>
  164. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.PutU">func (kv *KeyValue) PutU(key, value []byte) bool</a></dd>
  165. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.PutUString">func (kv *KeyValue) PutUString(key, value string) bool</a></dd>
  166. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Range">func (kv KeyValue) Range(start, limit int) (r util.Range)</a></dd>
  167. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Search">func (kv KeyValue) Search(key []byte) int</a></dd>
  168. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.SearchString">func (kv KeyValue) SearchString(key string) int</a></dd>
  169. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Size">func (kv *KeyValue) Size() int</a></dd>
  170. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.Slice">func (kv KeyValue) Slice(start, limit int) KeyValue</a></dd>
  171. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.SliceKey">func (kv KeyValue) SliceKey(start, limit []byte) KeyValue</a></dd>
  172. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.SliceKeyString">func (kv KeyValue) SliceKeyString(start, limit string) KeyValue</a></dd>
  173. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.SliceRange">func (kv KeyValue) SliceRange(r *util.Range) KeyValue</a></dd>
  174. <dd>&nbsp; &nbsp; <a href="index.html#KeyValue.ValueAt">func (kv KeyValue) ValueAt(i int) []byte</a></dd>
  175. <dd><a href="index.html#KeyValueEntry">type KeyValueEntry</a></dd>
  176. <dd><a href="index.html#NewIterator">type NewIterator</a></dd>
  177. <dd><a href="index.html#Put">type Put</a></dd>
  178. <dd><a href="index.html#Storage">type Storage</a></dd>
  179. <dd>&nbsp; &nbsp; <a href="index.html#NewStorage">func NewStorage() *Storage</a></dd>
  180. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Close">func (s *Storage) Close() error</a></dd>
  181. <dd>&nbsp; &nbsp; <a href="index.html#Storage.CloseCheck">func (s *Storage) CloseCheck()</a></dd>
  182. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Counter">func (s *Storage) Counter(m StorageMode, t storage.FileType) (count int, bytes int64)</a></dd>
  183. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Create">func (s *Storage) Create(fd storage.FileDesc) (w storage.Writer, err error)</a></dd>
  184. <dd>&nbsp; &nbsp; <a href="index.html#Storage.EmulateError">func (s *Storage) EmulateError(m StorageMode, t storage.FileType, err error)</a></dd>
  185. <dd>&nbsp; &nbsp; <a href="index.html#Storage.EmulateErrorOnce">func (s *Storage) EmulateErrorOnce(m StorageMode, t storage.FileType, err error)</a></dd>
  186. <dd>&nbsp; &nbsp; <a href="index.html#Storage.EmulateRandomError">func (s *Storage) EmulateRandomError(m StorageMode, t storage.FileType, prob float64, err error)</a></dd>
  187. <dd>&nbsp; &nbsp; <a href="index.html#Storage.ForceRemove">func (s *Storage) ForceRemove(fd storage.FileDesc) (err error)</a></dd>
  188. <dd>&nbsp; &nbsp; <a href="index.html#Storage.ForceRename">func (s *Storage) ForceRename(oldfd, newfd storage.FileDesc) (err error)</a></dd>
  189. <dd>&nbsp; &nbsp; <a href="index.html#Storage.GetMeta">func (s *Storage) GetMeta() (fd storage.FileDesc, err error)</a></dd>
  190. <dd>&nbsp; &nbsp; <a href="index.html#Storage.List">func (s *Storage) List(t storage.FileType) (fds []storage.FileDesc, err error)</a></dd>
  191. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Lock">func (s *Storage) Lock() (l storage.Locker, err error)</a></dd>
  192. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Log">func (s *Storage) Log(str string)</a></dd>
  193. <dd>&nbsp; &nbsp; <a href="index.html#Storage.OnClose">func (s *Storage) OnClose(onClose func() (preserve bool, err error))</a></dd>
  194. <dd>&nbsp; &nbsp; <a href="index.html#Storage.OnLog">func (s *Storage) OnLog(onLog func(log string))</a></dd>
  195. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Open">func (s *Storage) Open(fd storage.FileDesc) (r storage.Reader, err error)</a></dd>
  196. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Release">func (s *Storage) Release(m StorageMode, t storage.FileType)</a></dd>
  197. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Remove">func (s *Storage) Remove(fd storage.FileDesc) (err error)</a></dd>
  198. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Rename">func (s *Storage) Rename(oldfd, newfd storage.FileDesc) (err error)</a></dd>
  199. <dd>&nbsp; &nbsp; <a href="index.html#Storage.ResetCounter">func (s *Storage) ResetCounter(m StorageMode, t storage.FileType)</a></dd>
  200. <dd>&nbsp; &nbsp; <a href="index.html#Storage.SetMeta">func (s *Storage) SetMeta(fd storage.FileDesc) error</a></dd>
  201. <dd>&nbsp; &nbsp; <a href="index.html#Storage.Stall">func (s *Storage) Stall(m StorageMode, t storage.FileType)</a></dd>
  202. <dd><a href="index.html#StorageMode">type StorageMode</a></dd>
  203. </dl>
  204. </div><!-- #manual-nav -->
  205. <h4>Package files</h4>
  206. <p>
  207. <span style="font-size:90%">
  208. <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go">db.go</a>
  209. <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/ginkgo.go">ginkgo.go</a>
  210. <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go">iter.go</a>
  211. <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go">kv.go</a>
  212. <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go">kvtest.go</a>
  213. <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go">storage.go</a>
  214. <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go">util.go</a>
  215. </span>
  216. </p>
  217. </div><!-- .expanded -->
  218. </div><!-- #pkg-index -->
  219. <div id="pkg-callgraph" class="toggle" style="display: none">
  220. <div class="collapsed">
  221. <h2 class="toggleButton" title="Click to show Internal Call Graph section">Internal call graph ▹</h2>
  222. </div> <!-- .expanded -->
  223. <div class="expanded">
  224. <h2 class="toggleButton" title="Click to hide Internal Call Graph section">Internal call graph ▾</h2>
  225. <p>
  226. In the call graph viewer below, each node
  227. is a function belonging to this package
  228. and its children are the functions it
  229. calls&mdash;perhaps dynamically.
  230. </p>
  231. <p>
  232. The root nodes are the entry points of the
  233. package: functions that may be called from
  234. outside the package.
  235. There may be non-exported or anonymous
  236. functions among them if they are called
  237. dynamically from another package.
  238. </p>
  239. <p>
  240. Click a node to visit that function's source code.
  241. From there you can visit its callers by
  242. clicking its declaring <code>func</code>
  243. token.
  244. </p>
  245. <p>
  246. Functions may be omitted if they were
  247. determined to be unreachable in the
  248. particular programs or tests that were
  249. analyzed.
  250. </p>
  251. <!-- Zero means show all package entry points. -->
  252. <ul style="margin-left: 0.5in" id="callgraph-0" class="treeview"></ul>
  253. </div>
  254. </div> <!-- #pkg-callgraph -->
  255. <h2 id="AllKeyValueTesting">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go?s=4528:4617#L170">AllKeyValueTesting</a></h2>
  256. <pre>func AllKeyValueTesting(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, body, setup func(<a href="index.html#KeyValue">KeyValue</a>) <a href="index.html#DB">DB</a>, teardown func(<a href="index.html#DB">DB</a>))</pre>
  257. <h2 id="BytesAfter">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=1867:1899#L100">BytesAfter</a></h2>
  258. <pre>func BytesAfter(b []<a href="../../../../../builtin/index.html#byte">byte</a>) []<a href="../../../../../builtin/index.html#byte">byte</a></pre>
  259. <h2 id="BytesSeparator">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=1360:1399#L69">BytesSeparator</a></h2>
  260. <pre>func BytesSeparator(a, b []<a href="../../../../../builtin/index.html#byte">byte</a>) []<a href="../../../../../builtin/index.html#byte">byte</a></pre>
  261. <h2 id="Defer">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=419:455#L16">Defer</a></h2>
  262. <pre>func Defer(args ...interface{}) <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  263. <h2 id="DoDBTesting">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=3894:3924#L185">DoDBTesting</a></h2>
  264. <pre>func DoDBTesting(t *<a href="index.html#DBTesting">DBTesting</a>)</pre>
  265. <h2 id="DoIteratorTesting">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=5387:5429#L270">DoIteratorTesting</a></h2>
  266. <pre>func DoIteratorTesting(t *<a href="index.html#IteratorTesting">IteratorTesting</a>)</pre>
  267. <h2 id="KeyValueTesting">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go?s=2644:2743#L88">KeyValueTesting</a></h2>
  268. <pre>func KeyValueTesting(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, kv <a href="index.html#KeyValue">KeyValue</a>, p <a href="index.html#DB">DB</a>, setup func(<a href="index.html#KeyValue">KeyValue</a>) <a href="index.html#DB">DB</a>, teardown func(<a href="index.html#DB">DB</a>))</pre>
  269. <h2 id="Max">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=2683:2705#L149">Max</a></h2>
  270. <pre>func Max(x, y <a href="../../../../../builtin/index.html#int">int</a>) <a href="../../../../../builtin/index.html#int">int</a></pre>
  271. <h2 id="Min">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=2747:2769#L156">Min</a></h2>
  272. <pre>func Min(x, y <a href="../../../../../builtin/index.html#int">int</a>) <a href="../../../../../builtin/index.html#int">int</a></pre>
  273. <h2 id="NewRand">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=1246:1271#L63">NewRand</a></h2>
  274. <pre>func NewRand() *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a></pre>
  275. <h2 id="RandomIndex">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=2044:2106#L112">RandomIndex</a></h2>
  276. <pre>func RandomIndex(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, n, round <a href="../../../../../builtin/index.html#int">int</a>, fn func(i <a href="../../../../../builtin/index.html#int">int</a>))</pre>
  277. <h2 id="RandomRange">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=2405:2478#L134">RandomRange</a></h2>
  278. <pre>func RandomRange(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, n, round <a href="../../../../../builtin/index.html#int">int</a>, fn func(start, limit <a href="../../../../../builtin/index.html#int">int</a>))</pre>
  279. <h2 id="RandomSeed">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=1115:1138#L56">RandomSeed</a></h2>
  280. <pre>func RandomSeed() <a href="../../../../../builtin/index.html#int64">int64</a></pre>
  281. <h2 id="RunDefer">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=804:840#L39">RunDefer</a></h2>
  282. <pre>func RunDefer(groups ...<a href="../../../../../builtin/index.html#string">string</a>) <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  283. <h2 id="RunSuite">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/ginkgo.go?s=86:130#L1">RunSuite</a></h2>
  284. <pre>func RunSuite(t <a href="index.html#GinkgoTestingT">GinkgoTestingT</a>, name <a href="../../../../../builtin/index.html#string">string</a>)</pre>
  285. <h2 id="ShuffledIndex">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/util.go?s=2209:2273#L122">ShuffledIndex</a></h2>
  286. <pre>func ShuffledIndex(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, n, round <a href="../../../../../builtin/index.html#int">int</a>, fn func(i <a href="../../../../../builtin/index.html#int">int</a>))</pre>
  287. <h2 id="TestFind">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go?s=393:428#L10">TestFind</a></h2>
  288. <pre>func TestFind(db <a href="index.html#Find">Find</a>, kv <a href="index.html#KeyValue">KeyValue</a>)</pre>
  289. <h2 id="TestFindAfterLast">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go?s=1077:1121#L28">TestFindAfterLast</a></h2>
  290. <pre>func TestFindAfterLast(db <a href="index.html#Find">Find</a>, kv <a href="index.html#KeyValue">KeyValue</a>)</pre>
  291. <h2 id="TestGet">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go?s=1386:1419#L39">TestGet</a></h2>
  292. <pre>func TestGet(db <a href="index.html#Get">Get</a>, kv <a href="index.html#KeyValue">KeyValue</a>)</pre>
  293. <h2 id="TestHas">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go?s=1893:1926#L57">TestHas</a></h2>
  294. <pre>func TestHas(db <a href="index.html#Has">Has</a>, kv <a href="index.html#KeyValue">KeyValue</a>)</pre>
  295. <h2 id="TestIter">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kvtest.go?s=2401:2458#L75">TestIter</a></h2>
  296. <pre>func TestIter(db <a href="index.html#NewIterator">NewIterator</a>, r *<a href="../util/index.html">util</a>.<a href="../util/index.html#Range">Range</a>, kv <a href="index.html#KeyValue">KeyValue</a>)</pre>
  297. <h2 id="DB">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=413:432#L10">DB</a></h2>
  298. <pre>type DB interface{}</pre>
  299. <h2 id="DBAct">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=860:874#L36">DBAct</a></h2>
  300. <pre>type DBAct <a href="../../../../../builtin/index.html#int">int</a></pre>
  301. <pre>const (
  302. <span id="DBNone">DBNone</span> <a href="index.html#DBAct">DBAct</a> = <a href="../../../../../builtin/index.html#iota">iota</a>
  303. <span id="DBPut">DBPut</span>
  304. <span id="DBOverwrite">DBOverwrite</span>
  305. <span id="DBDelete">DBDelete</span>
  306. <span id="DBDeleteNA">DBDeleteNA</span>
  307. )</pre>
  308. <h3 id="DBAct.String">func (DBAct) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=876:906#L38">String</a></h3>
  309. <pre>func (a <a href="index.html#DBAct">DBAct</a>) String() <a href="../../../../../builtin/index.html#string">string</a></pre>
  310. <h2 id="DBTesting">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=1190:1395#L62">DBTesting</a></h2>
  311. <pre>type DBTesting struct {
  312. Rand *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>
  313. DB interface {
  314. <a href="index.html#Get">Get</a>
  315. <a href="index.html#Put">Put</a>
  316. <a href="index.html#Delete">Delete</a>
  317. }
  318. PostFn func(t *<a href="index.html#DBTesting">DBTesting</a>)
  319. Deleted, Present <a href="index.html#KeyValue">KeyValue</a>
  320. Act, LastAct <a href="index.html#DBAct">DBAct</a>
  321. ActKey, LastActKey []<a href="../../../../../builtin/index.html#byte">byte</a>
  322. }</pre>
  323. <h3 id="DBTesting.Delete">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=3265:3303#L153">Delete</a></h3>
  324. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) Delete(key []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  325. <h3 id="DBTesting.DeleteRandom">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=3567:3606#L166">DeleteRandom</a></h3>
  326. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) DeleteRandom() <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  327. <h3 id="DBTesting.Put">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=2773:2815#L130">Put</a></h3>
  328. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) Put(key, value []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  329. <h3 id="DBTesting.PutRandom">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=3075:3111#L143">PutRandom</a></h3>
  330. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) PutRandom() <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  331. <h3 id="DBTesting.RandomAct">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=3736:3776#L175">RandomAct</a></h3>
  332. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) RandomAct(round <a href="../../../../../builtin/index.html#int">int</a>)</pre>
  333. <h3 id="DBTesting.TestAll">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=2499:2528#L117">TestAll</a></h3>
  334. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) TestAll()</pre>
  335. <h3 id="DBTesting.TestAllDeleted">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=2361:2397#L111">TestAllDeleted</a></h3>
  336. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) TestAllDeleted()</pre>
  337. <h3 id="DBTesting.TestAllPresent">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=2045:2081#L100">TestAllPresent</a></h3>
  338. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) TestAllPresent()</pre>
  339. <h3 id="DBTesting.TestDeletedKey">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=2189:2235#L106">TestDeletedKey</a></h3>
  340. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) TestDeletedKey(key []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  341. <h3 id="DBTesting.TestPresentKV">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=1802:1854#L94">TestPresentKV</a></h3>
  342. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) TestPresentKV(key, value []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  343. <h3 id="DBTesting.Text">func (*DBTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=1731:1764#L90">Text</a></h3>
  344. <pre>func (t *<a href="index.html#DBTesting">DBTesting</a>) Text() <a href="../../../../../builtin/index.html#string">string</a></pre>
  345. <h2 id="Delete">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=499:554#L16">Delete</a></h2>
  346. <pre>type Delete interface {
  347. TestDelete(key []<a href="../../../../../builtin/index.html#byte">byte</a>) <a href="../../../../../builtin/index.html#error">error</a>
  348. }</pre>
  349. <h2 id="Find">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=556:634#L20">Find</a></h2>
  350. <pre>type Find interface {
  351. TestFind(key []<a href="../../../../../builtin/index.html#byte">byte</a>) (rkey, rvalue []<a href="../../../../../builtin/index.html#byte">byte</a>, err <a href="../../../../../builtin/index.html#error">error</a>)
  352. }</pre>
  353. <h2 id="Get">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=636:705#L24">Get</a></h2>
  354. <pre>type Get interface {
  355. TestGet(key []<a href="../../../../../builtin/index.html#byte">byte</a>) (value []<a href="../../../../../builtin/index.html#byte">byte</a>, err <a href="../../../../../builtin/index.html#error">error</a>)
  356. }</pre>
  357. <h2 id="Has">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=707:772#L28">Has</a></h2>
  358. <pre>type Has interface {
  359. TestHas(key []<a href="../../../../../builtin/index.html#byte">byte</a>) (ret <a href="../../../../../builtin/index.html#bool">bool</a>, err <a href="../../../../../builtin/index.html#error">error</a>)
  360. }</pre>
  361. <h2 id="IterAct">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=323:339#L8">IterAct</a></h2>
  362. <pre>type IterAct <a href="../../../../../builtin/index.html#int">int</a></pre>
  363. <pre>const (
  364. <span id="IterNone">IterNone</span> <a href="index.html#IterAct">IterAct</a> = <a href="../../../../../builtin/index.html#iota">iota</a>
  365. <span id="IterFirst">IterFirst</span>
  366. <span id="IterLast">IterLast</span>
  367. <span id="IterPrev">IterPrev</span>
  368. <span id="IterNext">IterNext</span>
  369. <span id="IterSeek">IterSeek</span>
  370. <span id="IterSOI">IterSOI</span>
  371. <span id="IterEOI">IterEOI</span>
  372. )</pre>
  373. <h3 id="IterAct.String">func (IterAct) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=341:373#L10">String</a></h3>
  374. <pre>func (a <a href="index.html#IterAct">IterAct</a>) String() <a href="../../../../../builtin/index.html#string">string</a></pre>
  375. <h2 id="IteratorTesting">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=771:960#L43">IteratorTesting</a></h2>
  376. <pre>type IteratorTesting struct {
  377. <a href="index.html#KeyValue">KeyValue</a>
  378. Iter <a href="../iterator/index.html">iterator</a>.<a href="../iterator/index.html#Iterator">Iterator</a>
  379. Rand *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>
  380. PostFn func(t *<a href="index.html#IteratorTesting">IteratorTesting</a>)
  381. Pos <a href="../../../../../builtin/index.html#int">int</a>
  382. Act, LastAct <a href="index.html#IterAct">IterAct</a>
  383. <span class="comment">// contains filtered or unexported fields</span>
  384. }</pre>
  385. <h3 id="IteratorTesting.EOI">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=4625:4656#L232">EOI</a></h3>
  386. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) EOI()</pre>
  387. <h3 id="IteratorTesting.First">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=1888:1921#L97">First</a></h3>
  388. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) First()</pre>
  389. <h3 id="IteratorTesting.IsFirst">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=1427:1467#L79">IsFirst</a></h3>
  390. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) IsFirst() <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  391. <h3 id="IteratorTesting.IsLast">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=1517:1556#L84">IsLast</a></h3>
  392. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) IsLast() <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  393. <h3 id="IteratorTesting.Last">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=2193:2225#L114">Last</a></h3>
  394. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) Last()</pre>
  395. <h3 id="IteratorTesting.Next">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=2504:2536#L131">Next</a></h3>
  396. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) Next()</pre>
  397. <h3 id="IteratorTesting.NextAll">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=5292:5327#L264">NextAll</a></h3>
  398. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) NextAll()</pre>
  399. <h3 id="IteratorTesting.Prev">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=2815:2847#L148">Prev</a></h3>
  400. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) Prev()</pre>
  401. <h3 id="IteratorTesting.PrevAll">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=5197:5232#L258">PrevAll</a></h3>
  402. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) PrevAll()</pre>
  403. <h3 id="IteratorTesting.SOI">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=4453:4484#L222">SOI</a></h3>
  404. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) SOI()</pre>
  405. <h3 id="IteratorTesting.Seek">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=3113:3150#L165">Seek</a></h3>
  406. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) Seek(i <a href="../../../../../builtin/index.html#int">int</a>)</pre>
  407. <h3 id="IteratorTesting.SeekInexact">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=3461:3505#L181">SeekInexact</a></h3>
  408. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) SeekInexact(i <a href="../../../../../builtin/index.html#int">int</a>)</pre>
  409. <h3 id="IteratorTesting.SeekKey">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=3921:3966#L201">SeekKey</a></h3>
  410. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) SeekKey(key []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  411. <h3 id="IteratorTesting.TestKV">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=1614:1648#L89">TestKV</a></h3>
  412. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) TestKV()</pre>
  413. <h3 id="IteratorTesting.Text">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=1341:1380#L75">Text</a></h3>
  414. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) Text() <a href="../../../../../builtin/index.html#string">string</a></pre>
  415. <h3 id="IteratorTesting.WalkNext">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=4997:5060#L250">WalkNext</a></h3>
  416. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) WalkNext(fn func(t *<a href="index.html#IteratorTesting">IteratorTesting</a>))</pre>
  417. <h3 id="IteratorTesting.WalkPrev">func (*IteratorTesting) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/iter.go?s=4805:4868#L242">WalkPrev</a></h3>
  418. <pre>func (t *<a href="index.html#IteratorTesting">IteratorTesting</a>) WalkPrev(fn func(t *<a href="index.html#IteratorTesting">IteratorTesting</a>))</pre>
  419. <h2 id="KeyValue">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=359:421#L12">KeyValue</a></h2>
  420. <pre>type KeyValue struct {
  421. <span class="comment">// contains filtered or unexported fields</span>
  422. }</pre>
  423. <h3 id="KeyValue_BigValue">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=5776:5810#L242">KeyValue_BigValue</a></h3>
  424. <pre>func KeyValue_BigValue() *<a href="index.html#KeyValue">KeyValue</a></pre>
  425. <h3 id="KeyValue_EmptyKey">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=5461:5495#L223">KeyValue_EmptyKey</a></h3>
  426. <pre>func KeyValue_EmptyKey() *<a href="index.html#KeyValue">KeyValue</a></pre>
  427. <h3 id="KeyValue_EmptyValue">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=5554:5590#L229">KeyValue_EmptyValue</a></h3>
  428. <pre>func KeyValue_EmptyValue() *<a href="index.html#KeyValue">KeyValue</a></pre>
  429. <h3 id="KeyValue_Generate">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=6916:7011#L285">KeyValue_Generate</a></h3>
  430. <pre>func KeyValue_Generate(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, n, incr, minlen, maxlen, vminlen, vmaxlen <a href="../../../../../builtin/index.html#int">int</a>) *<a href="index.html#KeyValue">KeyValue</a></pre>
  431. <h3 id="KeyValue_MultipleKeyValue">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=6001:6043#L254">KeyValue_MultipleKeyValue</a></h3>
  432. <pre>func KeyValue_MultipleKeyValue() *<a href="index.html#KeyValue">KeyValue</a></pre>
  433. <h3 id="KeyValue_OneKeyValue">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=5677:5714#L236">KeyValue_OneKeyValue</a></h3>
  434. <pre>func KeyValue_OneKeyValue() *<a href="index.html#KeyValue">KeyValue</a></pre>
  435. <h3 id="KeyValue_SpecialKey">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=5897:5933#L248">KeyValue_SpecialKey</a></h3>
  436. <pre>func KeyValue_SpecialKey() *<a href="index.html#KeyValue">KeyValue</a></pre>
  437. <h3 id="KeyValue.Clone">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=4265:4300#L173">Clone</a></h3>
  438. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Clone() <a href="index.html#KeyValue">KeyValue</a></pre>
  439. <h3 id="KeyValue.Delete">func (*KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=1389:1454#L50">Delete</a></h3>
  440. <pre>func (kv *<a href="index.html#KeyValue">KeyValue</a>) Delete(key []<a href="../../../../../builtin/index.html#byte">byte</a>) (exist <a href="../../../../../builtin/index.html#bool">bool</a>, value []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  441. <h3 id="KeyValue.DeleteIndex">func (*KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=1558:1601#L59">DeleteIndex</a></h3>
  442. <pre>func (kv *<a href="index.html#KeyValue">KeyValue</a>) DeleteIndex(i <a href="../../../../../builtin/index.html#int">int</a>) <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  443. <h3 id="KeyValue.Get">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=2962:3016#L124">Get</a></h3>
  444. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Get(key []<a href="../../../../../builtin/index.html#byte">byte</a>) (i <a href="../../../../../builtin/index.html#int">int</a>, exist <a href="../../../../../builtin/index.html#bool">bool</a>)</pre>
  445. <h3 id="KeyValue.GetString">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=3125:3185#L132">GetString</a></h3>
  446. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) GetString(key <a href="../../../../../builtin/index.html#string">string</a>) (i <a href="../../../../../builtin/index.html#int">int</a>, exist <a href="../../../../../builtin/index.html#bool">bool</a>)</pre>
  447. <h3 id="KeyValue.Index">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=2025:2076#L84">Index</a></h3>
  448. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Index(i <a href="../../../../../builtin/index.html#int">int</a>) (key, value []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  449. <h3 id="KeyValue.IndexInexact">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=2219:2283#L91">IndexInexact</a></h3>
  450. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IndexInexact(i <a href="../../../../../builtin/index.html#int">int</a>) (key_, key, value []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  451. <h3 id="KeyValue.IndexOrNil">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=2439:2495#L102">IndexOrNil</a></h3>
  452. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IndexOrNil(i <a href="../../../../../builtin/index.html#int">int</a>) (key, value []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  453. <h3 id="KeyValue.IndexString">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=2605:2662#L109">IndexString</a></h3>
  454. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IndexString(i <a href="../../../../../builtin/index.html#int">int</a>) (key, value <a href="../../../../../builtin/index.html#string">string</a>)</pre>
  455. <h3 id="KeyValue.Iterate">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=3219:3280#L136">Iterate</a></h3>
  456. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Iterate(fn func(i <a href="../../../../../builtin/index.html#int">int</a>, key, value []<a href="../../../../../builtin/index.html#byte">byte</a>))</pre>
  457. <h3 id="KeyValue.IterateInexact">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=3888:3962#L160">IterateInexact</a></h3>
  458. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IterateInexact(fn func(i <a href="../../../../../builtin/index.html#int">int</a>, key_, key, value []<a href="../../../../../builtin/index.html#byte">byte</a>))</pre>
  459. <h3 id="KeyValue.IterateInexactString">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=4067:4147#L167">IterateInexactString</a></h3>
  460. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IterateInexactString(fn func(i <a href="../../../../../builtin/index.html#int">int</a>, key_, key, value <a href="../../../../../builtin/index.html#string">string</a>))</pre>
  461. <h3 id="KeyValue.IterateShuffled">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=3503:3588#L148">IterateShuffled</a></h3>
  462. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IterateShuffled(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, fn func(i <a href="../../../../../builtin/index.html#int">int</a>, key, value []<a href="../../../../../builtin/index.html#byte">byte</a>))</pre>
  463. <h3 id="KeyValue.IterateShuffledString">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=3693:3784#L154">IterateShuffledString</a></h3>
  464. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IterateShuffledString(rnd *<a href="../../../../../math/rand/index.html">rand</a>.<a href="../../../../../math/rand/index.html#Rand">Rand</a>, fn func(i <a href="../../../../../builtin/index.html#int">int</a>, key, value <a href="../../../../../builtin/index.html#string">string</a>))</pre>
  465. <h3 id="KeyValue.IterateString">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=3345:3412#L142">IterateString</a></h3>
  466. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) IterateString(fn func(i <a href="../../../../../builtin/index.html#int">int</a>, key, value <a href="../../../../../builtin/index.html#string">string</a>))</pre>
  467. <h3 id="KeyValue.KeyAt">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=1881:1919#L76">KeyAt</a></h3>
  468. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) KeyAt(i <a href="../../../../../builtin/index.html#int">int</a>) []<a href="../../../../../builtin/index.html#byte">byte</a></pre>
  469. <h3 id="KeyValue.Len">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=1769:1797#L68">Len</a></h3>
  470. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Len() <a href="../../../../../builtin/index.html#int">int</a></pre>
  471. <h3 id="KeyValue.Put">func (*KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=423:465#L17">Put</a></h3>
  472. <pre>func (kv *<a href="index.html#KeyValue">KeyValue</a>) Put(key, value []<a href="../../../../../builtin/index.html#byte">byte</a>)</pre>
  473. <h3 id="KeyValue.PutString">func (*KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=746:794#L25">PutString</a></h3>
  474. <pre>func (kv *<a href="index.html#KeyValue">KeyValue</a>) PutString(key, value <a href="../../../../../builtin/index.html#string">string</a>)</pre>
  475. <h3 id="KeyValue.PutU">func (*KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=836:884#L29">PutU</a></h3>
  476. <pre>func (kv *<a href="index.html#KeyValue">KeyValue</a>) PutU(key, value []<a href="../../../../../builtin/index.html#byte">byte</a>) <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  477. <h3 id="KeyValue.PutUString">func (*KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=1285:1339#L46">PutUString</a></h3>
  478. <pre>func (kv *<a href="index.html#KeyValue">KeyValue</a>) PutUString(key, value <a href="../../../../../builtin/index.html#string">string</a>) <a href="../../../../../builtin/index.html#bool">bool</a></pre>
  479. <h3 id="KeyValue.Range">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=5200:5257#L209">Range</a></h3>
  480. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Range(start, limit <a href="../../../../../builtin/index.html#int">int</a>) (r <a href="../util/index.html">util</a>.<a href="../util/index.html#Range">Range</a>)</pre>
  481. <h3 id="KeyValue.Search">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=2734:2775#L114">Search</a></h3>
  482. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Search(key []<a href="../../../../../builtin/index.html#byte">byte</a>) <a href="../../../../../builtin/index.html#int">int</a></pre>
  483. <h3 id="KeyValue.SearchString">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=2878:2925#L120">SearchString</a></h3>
  484. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) SearchString(key <a href="../../../../../builtin/index.html#string">string</a>) <a href="../../../../../builtin/index.html#int">int</a></pre>
  485. <h3 id="KeyValue.Size">func (*KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=1827:1857#L72">Size</a></h3>
  486. <pre>func (kv *<a href="index.html#KeyValue">KeyValue</a>) Size() <a href="../../../../../builtin/index.html#int">int</a></pre>
  487. <h3 id="KeyValue.Slice">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=4376:4427#L177">Slice</a></h3>
  488. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) Slice(start, limit <a href="../../../../../builtin/index.html#int">int</a>) <a href="index.html#KeyValue">KeyValue</a></pre>
  489. <h3 id="KeyValue.SliceKey">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=4717:4774#L186">SliceKey</a></h3>
  490. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) SliceKey(start, limit []<a href="../../../../../builtin/index.html#byte">byte</a>) <a href="index.html#KeyValue">KeyValue</a></pre>
  491. <h3 id="KeyValue.SliceKeyString">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=4946:5009#L198">SliceKeyString</a></h3>
  492. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) SliceKeyString(start, limit <a href="../../../../../builtin/index.html#string">string</a>) <a href="index.html#KeyValue">KeyValue</a></pre>
  493. <h3 id="KeyValue.SliceRange">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=5065:5118#L202">SliceRange</a></h3>
  494. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) SliceRange(r *<a href="../util/index.html">util</a>.<a href="../util/index.html#Range">Range</a>) <a href="index.html#KeyValue">KeyValue</a></pre>
  495. <h3 id="KeyValue.ValueAt">func (KeyValue) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=1951:1991#L80">ValueAt</a></h3>
  496. <pre>func (kv <a href="index.html#KeyValue">KeyValue</a>) ValueAt(i <a href="../../../../../builtin/index.html#int">int</a>) []<a href="../../../../../builtin/index.html#byte">byte</a></pre>
  497. <h2 id="KeyValueEntry">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/kv.go?s=309:357#L8">KeyValueEntry</a></h2>
  498. <pre>type KeyValueEntry struct {
  499. <span class="comment">// contains filtered or unexported fields</span>
  500. }</pre>
  501. <h2 id="NewIterator">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=774:858#L32">NewIterator</a></h2>
  502. <pre>type NewIterator interface {
  503. TestNewIterator(slice *<a href="../util/index.html">util</a>.<a href="../util/index.html#Range">Range</a>) <a href="../iterator/index.html">iterator</a>.<a href="../iterator/index.html#Iterator">Iterator</a>
  504. }</pre>
  505. <h2 id="Put">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/db.go?s=434:497#L12">Put</a></h2>
  506. <pre>type Put interface {
  507. TestPut(key []<a href="../../../../../builtin/index.html#byte">byte</a>, value []<a href="../../../../../builtin/index.html#byte">byte</a>) <a href="../../../../../builtin/index.html#error">error</a>
  508. }</pre>
  509. <h2 id="Storage">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=4494:5120#L233">Storage</a></h2>
  510. <pre>type Storage struct {
  511. <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#Storage">Storage</a>
  512. <span class="comment">// contains filtered or unexported fields</span>
  513. }</pre>
  514. <h3 id="NewStorage">func <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=14349:14375#L648">NewStorage</a></h3>
  515. <pre>func NewStorage() *<a href="index.html#Storage">Storage</a></pre>
  516. <h3 id="Storage.Close">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=11363:11394#L522">Close</a></h3>
  517. <pre>func (s *<a href="index.html#Storage">Storage</a>) Close() <a href="../../../../../builtin/index.html#error">error</a></pre>
  518. <h3 id="Storage.CloseCheck">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=11111:11141#L510">CloseCheck</a></h3>
  519. <pre>func (s *<a href="index.html#Storage">Storage</a>) CloseCheck()</pre>
  520. <h3 id="Storage.Counter">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=12508:12593#L571">Counter</a></h3>
  521. <pre>func (s *<a href="index.html#Storage">Storage</a>) Counter(m <a href="index.html#StorageMode">StorageMode</a>, t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>) (count <a href="../../../../../builtin/index.html#int">int</a>, bytes <a href="../../../../../builtin/index.html#int64">int64</a>)</pre>
  522. <h3 id="Storage.Create">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=8854:8929#L418">Create</a></h3>
  523. <pre>func (s *<a href="index.html#Storage">Storage</a>) Create(fd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>) (w <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#Writer">Writer</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  524. <h3 id="Storage.EmulateError">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=13123:13199#L595">EmulateError</a></h3>
  525. <pre>func (s *<a href="index.html#Storage">Storage</a>) EmulateError(m <a href="index.html#StorageMode">StorageMode</a>, t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  526. <h3 id="Storage.EmulateErrorOnce">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=13345:13425#L604">EmulateErrorOnce</a></h3>
  527. <pre>func (s *<a href="index.html#Storage">Storage</a>) EmulateErrorOnce(m <a href="index.html#StorageMode">StorageMode</a>, t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  528. <h3 id="Storage.EmulateRandomError">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=13570:13666#L613">EmulateRandomError</a></h3>
  529. <pre>func (s *<a href="index.html#Storage">Storage</a>) EmulateRandomError(m <a href="index.html#StorageMode">StorageMode</a>, t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>, prob <a href="../../../../../builtin/index.html#float64">float64</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  530. <h3 id="Storage.ForceRemove">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=9776:9838#L460">ForceRemove</a></h3>
  531. <pre>func (s *<a href="index.html#Storage">Storage</a>) ForceRemove(fd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>) (err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  532. <h3 id="Storage.ForceRename">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=10574:10646#L491">ForceRename</a></h3>
  533. <pre>func (s *<a href="index.html#Storage">Storage</a>) ForceRename(oldfd, newfd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>) (err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  534. <h3 id="Storage.GetMeta">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=7089:7149#L345">GetMeta</a></h3>
  535. <pre>func (s *<a href="index.html#Storage">Storage</a>) GetMeta() (fd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  536. <h3 id="Storage.List">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=6847:6925#L335">List</a></h3>
  537. <pre>func (s *<a href="index.html#Storage">Storage</a>) List(t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>) (fds []<a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  538. <h3 id="Storage.Lock">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=6623:6677#L324">Lock</a></h3>
  539. <pre>func (s *<a href="index.html#Storage">Storage</a>) Lock() (l <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#Locker">Locker</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  540. <h3 id="Storage.Log">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=6541:6574#L319">Log</a></h3>
  541. <pre>func (s *<a href="index.html#Storage">Storage</a>) Log(str <a href="../../../../../builtin/index.html#string">string</a>)</pre>
  542. <h3 id="Storage.OnClose">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=11240:11308#L516">OnClose</a></h3>
  543. <pre>func (s *<a href="index.html#Storage">Storage</a>) OnClose(onClose func() (preserve <a href="../../../../../builtin/index.html#bool">bool</a>, err <a href="../../../../../builtin/index.html#error">error</a>))</pre>
  544. <h3 id="Storage.OnLog">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=6350:6397#L308">OnLog</a></h3>
  545. <pre>func (s *<a href="index.html#Storage">Storage</a>) OnLog(onLog func(log <a href="../../../../../builtin/index.html#string">string</a>))</pre>
  546. <h3 id="Storage.Open">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=8367:8440#L396">Open</a></h3>
  547. <pre>func (s *<a href="index.html#Storage">Storage</a>) Open(fd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>) (r <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#Reader">Reader</a>, err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  548. <h3 id="Storage.Release">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=14155:14215#L639">Release</a></h3>
  549. <pre>func (s *<a href="index.html#Storage">Storage</a>) Release(m <a href="index.html#StorageMode">StorageMode</a>, t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>)</pre>
  550. <h3 id="Storage.Remove">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=9353:9410#L440">Remove</a></h3>
  551. <pre>func (s *<a href="index.html#Storage">Storage</a>) Remove(fd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>) (err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  552. <h3 id="Storage.Rename">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=10053:10120#L470">Rename</a></h3>
  553. <pre>func (s *<a href="index.html#Storage">Storage</a>) Rename(oldfd, newfd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>) (err <a href="../../../../../builtin/index.html#error">error</a>)</pre>
  554. <h3 id="Storage.ResetCounter">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=12347:12412#L564">ResetCounter</a></h3>
  555. <pre>func (s *<a href="index.html#Storage">Storage</a>) ResetCounter(m <a href="index.html#StorageMode">StorageMode</a>, t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>)</pre>
  556. <h3 id="Storage.SetMeta">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=7327:7379#L357">SetMeta</a></h3>
  557. <pre>func (s *<a href="index.html#Storage">Storage</a>) SetMeta(fd <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileDesc">FileDesc</a>) <a href="../../../../../builtin/index.html#error">error</a></pre>
  558. <h3 id="Storage.Stall">func (*Storage) <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=13989:14047#L631">Stall</a></h3>
  559. <pre>func (s *<a href="index.html#Storage">Storage</a>) Stall(m <a href="index.html#StorageMode">StorageMode</a>, t <a href="../storage/index.html">storage</a>.<a href="../storage/index.html#FileType">FileType</a>)</pre>
  560. <h2 id="StorageMode">type <a href="http://localhost:6060/src/github.com/syndtr/goleveldb/leveldb/testutil/storage.go?s=489:509#L22">StorageMode</a></h2>
  561. <pre>type StorageMode <a href="../../../../../builtin/index.html#int">int</a></pre>
  562. <pre>const (
  563. <span id="ModeOpen">ModeOpen</span> <a href="index.html#StorageMode">StorageMode</a> = 1 &lt;&lt; <a href="../../../../../builtin/index.html#iota">iota</a>
  564. <span id="ModeCreate">ModeCreate</span>
  565. <span id="ModeRemove">ModeRemove</span>
  566. <span id="ModeRename">ModeRename</span>
  567. <span id="ModeRead">ModeRead</span>
  568. <span id="ModeWrite">ModeWrite</span>
  569. <span id="ModeSync">ModeSync</span>
  570. <span id="ModeClose">ModeClose</span>
  571. )</pre>
  572. <div id="footer">
  573. Build version go1.6.<br>
  574. Except as <a href="https://developers.google.com/site-policies#restrictions">noted</a>,
  575. the content of this page is licensed under the
  576. Creative Commons Attribution 3.0 License,
  577. and code is licensed under a <a href="http://localhost:6060/LICENSE">BSD license</a>.<br>
  578. <a href="http://localhost:6060/doc/tos.html">Terms of Service</a> |
  579. <a href="http://www.google.com/intl/en/policies/privacy/">Privacy Policy</a>
  580. </div>
  581. </div><!-- .container -->
  582. </div><!-- #page -->
  583. <!-- TODO(adonovan): load these from <head> using "defer" attribute? -->
  584. <script type="text/javascript" src="../../../../../../lib/godoc/jquery.js"></script>
  585. <script type="text/javascript" src="../../../../../../lib/godoc/jquery.treeview.js"></script>
  586. <script type="text/javascript" src="../../../../../../lib/godoc/jquery.treeview.edit.js"></script>
  587. <script type="text/javascript" src="../../../../../../lib/godoc/godocs.js"></script>
  588. </body>
  589. </html>