File: discard_snapshot_test.go

package info (click to toggle)
golang-github-hashicorp-raft 0.0~git20160317.0.3359516-1~bpo8+1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 428 kB
  • sloc: makefile: 16
file content (17 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package raft

import "testing"

func TestDiscardSnapshotStoreImpl(t *testing.T) {
	var impl interface{} = &DiscardSnapshotStore{}
	if _, ok := impl.(SnapshotStore); !ok {
		t.Fatalf("DiscardSnapshotStore not a SnapshotStore")
	}
}

func TestDiscardSnapshotSinkImpl(t *testing.T) {
	var impl interface{} = &DiscardSnapshotSink{}
	if _, ok := impl.(SnapshotSink); !ok {
		t.Fatalf("DiscardSnapshotSink not a SnapshotSink")
	}
}