testutils

package
v1.38.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const PAGE_01 = "PAGE_01"
View Source
const PAGE_02 = "PAGE_02"
View Source
const SITE_01 = "SITE_01"
View Source
const SITE_02 = "SITE_02"
View Source
const TEMPLATE_01 = "TEMPLATE_01"
View Source
const TEMPLATE_02 = "TEMPLATE_02"
View Source
const TRANSLATION_01 = "TRANSLATION_01"
View Source
const TRANSLATION_02 = "TRANSLATION_02"

Variables

This section is empty.

Functions

func InitStore

func InitStore(filepath string) (cmsstore.StoreInterface, error)

func InitStoreWithVersioning added in v1.32.0

func InitStoreWithVersioning(filepath string) (cmsstore.StoreInterface, error)

InitStoreWithVersioning creates a store with versioning enabled. Use a file-based database path instead of ":memory:" to avoid deadlocks.

func InitStoreWithVersioningAndDB added in v1.32.0

func InitStoreWithVersioningAndDB(filepath string) (cmsstore.StoreInterface, *sql.DB, error)

InitStoreWithVersioningAndDB creates a store with versioning enabled and returns both the store and db connection. Use a file-based database path instead of ":memory:" to avoid deadlocks.

func InitStoreWithVersioningForTest added in v1.32.0

func InitStoreWithVersioningForTest(t *testing.T) (cmsstore.StoreInterface, func())

InitStoreWithVersioningForTest creates a store with versioning enabled using a file-based database. This is intended for tests that require versioning functionality.

func SeedPage

func SeedPage(store cmsstore.StoreInterface, siteID string, pageID string) (cmsstore.PageInterface, error)

func SeedSite

func SeedSite(store cmsstore.StoreInterface, siteID string) (cmsstore.SiteInterface, error)

func SeedTemplate

func SeedTemplate(store cmsstore.StoreInterface, siteID string, templateID string) (cmsstore.TemplateInterface, error)

func SeedTranslation added in v1.15.0

func SeedTranslation(store cmsstore.StoreInterface, siteID string, translationID string) (cmsstore.TranslationInterface, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL