You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: log_test.go
    path of file: ./repos/pocketbase/daos
    
    the code of the file until where you have to start completion: package daos_test

import (
	"encoding/json"
	"testing"
	"time"

	"github.com/pocketbase/dbx"
	"github.com/pocketbase/pocketbase/models"
	"github.com/pocketbase/pocketbase/tests"
	"github.com/pocketbase/pocketbase/tools/types"
)

func TestLogQuery(t *testing.T) {
	t.Parallel()

	app, _ := tests.NewTestApp()
	defer app.Cleanup()

	expected := "SELECT {{_logs}}.* FROM `_logs`"

	sql := app.Dao().LogQuery().Build().SQL()
	if sql != expected {
		t.Errorf("Expected sql %s, got %s", expected, sql)
	}
}

func TestFindLogById(t *t
    
func TestSaveLog(t *testing.T) {
	t.Parallel()

	app, _ := tests.NewTestApp()
	defer app.Cleanup()

	tests.MockLogsData(app)

	// create new log
	newLog := &models.Log{}
	newLog.Level = -4
	newLog.Data = types.JsonMap{}
	createErr := app.LogsDao().SaveLog(newLog)
	if createErr != nil {
		t.Fatal(createErr)
	}

	// check if it was really created
	existingLog, fetchErr := app.LogsDao().FindLogById(newLog.Id)
	if fetchErr != nil {
		t.Fatal(fetchErr)
	}

	existingLog.Level = 4
	updateErr := app.LogsDao().SaveLog(existingLog)
	if updateErr != nil {
		t.Fatal(updateErr)
	}
	// refresh instance to check if it was really updated
	existingLog, _ = app.LogsDao().FindLogById(existingLog.Id)
	if existingLog.Level != 4 {
		t.Fatalf("Expected log level to be %d, got %d", 4, existingLog.Level)
	}
}