MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / init

Function init

datafile_test.go:32–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30)
31
32func init() {
33 filePath = filepath.Join(os.TempDir(), "foo")
34 entry = core.Entry{
35 Key: []byte("key_0001"),
36 Value: []byte("val_0001"),
37 Meta: core.NewMetaData().WithKeySize(uint32(len("key_0001"))).
38 WithValueSize(uint32(len("val_0001"))).WithTimeStamp(1547707905).
39 WithTTL(Persistent).WithFlag(DataSetFlag).WithBucketId(1),
40 }
41}
42
43func TestDataFile_Err(t *testing.T) {
44 if runtime.GOOS == "windows" {

Callers

nothing calls this directly

Calls 7

NewMetaDataFunction · 0.92
WithBucketIdMethod · 0.80
WithFlagMethod · 0.80
WithTimeStampMethod · 0.80
WithKeySizeMethod · 0.80
WithTTLMethod · 0.45
WithValueSizeMethod · 0.45

Tested by

no test coverage detected