integration

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestHelper

type TestHelper struct {

	// Test directories
	TempDir     string
	LogseqDir   string
	JournalsDir string
	ConfigPath  string

	// Original environment state
	OriginalEditor string
	OriginalHome   string
	// contains filtered or unexported fields
}

TestHelper contains common utilities for integration tests

func NewTestHelper

func NewTestHelper(t *testing.T) *TestHelper

NewTestHelper creates and initializes a new test helper

func (*TestHelper) AssertFileExists

func (h *TestHelper) AssertFileExists(path string, expectedContent string)

AssertFileExists checks if a file exists and contains expected content

func (*TestHelper) Cleanup

func (h *TestHelper) Cleanup()

Cleanup restores the original environment state

Jump to

Keyboard shortcuts

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