/usr/share/gocode/src/github.com/docker/libkv/libkv_test.go is in golang-github-docker-libkv-dev 0.2.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | package libkv
import (
"testing"
"time"
"github.com/docker/libkv/store"
"github.com/stretchr/testify/assert"
)
func TestNewStoreUnsupported(t *testing.T) {
client := "localhost:9999"
kv, err := NewStore(
"unsupported",
[]string{client},
&store.Config{
ConnectionTimeout: 10 * time.Second,
},
)
assert.Error(t, err)
assert.Nil(t, kv)
assert.Equal(t, "Backend storage not supported yet, please choose one of ", err.Error())
}
|