File: msgfunc_test.go

package info (click to toggle)
golang-github-bmatsuo-lmdb-go 1.8.0%2Bgit20170215.a14b5a3-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 840 kB
  • sloc: ansic: 8,247; makefile: 19
file content (15 lines) | stat: -rw-r--r-- 298 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package lmdb

import "testing"

func TestMsgctx_conflict(t *testing.T) {
	ctx := nextctx()
	ctx.register(func(string) error { return nil })
	defer func() {
		ctx.deregister()
		if e := recover(); e == nil {
			t.Errorf("expeceted panic")
		}
	}()
	ctx.register(func(string) error { return nil })
}