MCPcopy Create free account
hub / github.com/distributedio/titan / GetEqual

Method GetEqual

tools/autotest/cmd/string.go:38–42  ·  view source on GitHub ↗

GetEqual verify that the return value of the get operation is correct

(t *testing.T, key string)

Source from the content-addressed store, hash-verified

36
37//GetEqual verify that the return value of the get operation is correct
38func (es *ExampleString) GetEqual(t *testing.T, key string) {
39 data, err := redis.Bytes(es.conn.Do("GET", key))
40 assert.Equal(t, es.values[key], string(data))
41 assert.NoError(t, err)
42}
43
44//SetEqualErr verify that the return value of the set operation is correct
45func (es *ExampleString) SetEqualErr(t *testing.T, errValue string, args ...interface{}) {

Callers 1

MSetEqualMethod · 0.95

Calls 1

BytesMethod · 0.80

Tested by

no test coverage detected