MCPcopy
hub / github.com/mxpv/podsync / TestBadger_AddFeed

Function TestBadger_AddFeed

pkg/db/badger_test.go:38–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

36}
37
38func TestBadger_AddFeed(t *testing.T) {
39 dir := t.TempDir()
40
41 db, err := NewBadger(&Config{Dir: dir})
42 require.NoError(t, err)
43 defer db.Close()
44
45 feed := getFeed()
46 err = db.AddFeed(testCtx, feed.ID, feed)
47 assert.NoError(t, err)
48}
49
50func TestBadger_GetFeed(t *testing.T) {
51 dir := t.TempDir()

Callers

nothing calls this directly

Calls 4

CloseMethod · 0.95
AddFeedMethod · 0.95
NewBadgerFunction · 0.85
getFeedFunction · 0.85

Tested by

no test coverage detected