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

Function compareGetString

db/string_test.go:11–17  ·  view source on GitHub ↗

compareGetString skip CreatedAt UpdatedAt ID compare

(t *testing.T, want, get *String)

Source from the content-addressed store, hash-verified

9
10// compareGetString skip CreatedAt UpdatedAt ID compare
11func compareGetString(t *testing.T, want, get *String) {
12 assert.Equal(t, want.key, get.key)
13 assert.Equal(t, want.Meta.ExpireAt, get.Meta.ExpireAt)
14 assert.Equal(t, want.Meta.Type, get.Meta.Type)
15 assert.Equal(t, want.Meta.Encoding, get.Meta.Encoding)
16 assert.Equal(t, want.Meta.Value, get.Meta.Value)
17}
18
19func setValue(t *testing.T, TestKey []byte, value []byte) {
20 callFunc := func(txn *Transaction) {

Callers 1

TestGetStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected