Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
package test
import (
"context"
"testing"
"github.com/stretchr/testify/require"
)
func TestGetDatabaseSize(t *testing.T) {
t.Parallel()
ctx := context.Background()
ts := NewTestingStore(ctx, t)
defer ts.Close()
size, err := ts.GetDriver().GetDatabaseSize(ctx)
require.NoError(t, err)
require.Greater(t, size, int64(0), "expected database size > 0")
}