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

Function getHashMeta

db/hash_test.go:94–101  ·  view source on GitHub ↗
(t *testing.T, txn *Transaction, key []byte)

Source from the content-addressed store, hash-verified

92}
93
94func getHashMeta(t *testing.T, txn *Transaction, key []byte) *HashMeta {
95 mkey := MetaKey(txn.db, key)
96 rawMeta, err := txn.t.Get(mkey)
97 assert.NoError(t, err)
98 meta, err1 := DecodeHashMeta(rawMeta)
99 assert.NoError(t, err1)
100 return meta
101}
102
103//删除设置的meta信息
104func destoryHashMeta(t *testing.T, txn *Transaction, key []byte) error {

Callers

nothing calls this directly

Calls 3

MetaKeyFunction · 0.85
DecodeHashMetaFunction · 0.85
GetMethod · 0.80

Tested by

no test coverage detected