File: export_test.go

package info (click to toggle)
etcd 3.5.16-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,876 kB
  • sloc: sh: 3,136; makefile: 477
file content (15 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package backend

import bolt "go.etcd.io/bbolt"

func DbFromBackendForTest(b Backend) *bolt.DB {
	return b.(*backend).db
}

func DefragLimitForTest() int {
	return defragLimit
}

func CommitsForTest(b Backend) int64 {
	return b.(*backend).Commits()
}