dbtests

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAllTests

func RunAllTests(t *testing.T, client types.DB)

RunAllTests runs all database compliance tests. This is a convenience function for plugin implementations.

func TestChannelProcessingState_EdgeCases

func TestChannelProcessingState_EdgeCases(t *testing.T, client types.DB)

TestChannelProcessingState_EdgeCases tests edge cases for channel processing state.

func TestConcurrentMoveMapping

func TestConcurrentMoveMapping(t *testing.T, client types.DB)

TestConcurrentMoveMapping tests concurrent move mapping operations.

func TestConcurrentSaveIssue

func TestConcurrentSaveIssue(t *testing.T, client types.DB)

TestConcurrentSaveIssue tests concurrent writes to the same issue.

func TestContextCancellation

func TestContextCancellation(t *testing.T, client types.DB)

TestContextCancellation tests that operations respect context cancellation.

func TestCreatingAndFindingChannelProcessingState

func TestCreatingAndFindingChannelProcessingState(t *testing.T, client types.DB)

func TestCreatingAndFindingMoveMappings

func TestCreatingAndFindingMoveMappings(t *testing.T, client types.DB)

func TestDeletingMoveMappings

func TestDeletingMoveMappings(t *testing.T, client types.DB)

func TestFindActiveChannels

func TestFindActiveChannels(t *testing.T, client types.DB)

func TestFindActiveChannels_ManyChannels

func TestFindActiveChannels_ManyChannels(t *testing.T, client types.DB)

TestFindActiveChannels_ManyChannels tests finding active channels with many channels.

func TestFindIssueBySlackPostID

func TestFindIssueBySlackPostID(t *testing.T, client types.DB)

func TestFindOpenIssueByCorrelationID

func TestFindOpenIssueByCorrelationID(t *testing.T, client types.DB)

func TestInit

func TestInit(t *testing.T, client types.DB)

TestInit verifies that database initialization works correctly. It tests basic initialization and idempotent calls.

func TestInit_WithSchemaValidation

func TestInit_WithSchemaValidation(t *testing.T, client types.DB)

TestInit_WithSchemaValidation verifies initialization with schema validation enabled.

func TestLoadOpenIssuesInChannel

func TestLoadOpenIssuesInChannel(t *testing.T, client types.DB)

func TestLoadOpenIssuesInChannel_LargeDataset

func TestLoadOpenIssuesInChannel_LargeDataset(t *testing.T, client types.DB)

TestLoadOpenIssuesInChannel_LargeDataset tests loading many issues from a channel.

func TestMoveIssue

func TestMoveIssue(t *testing.T, client types.DB)

func TestMoveIssue_EdgeCases

func TestMoveIssue_EdgeCases(t *testing.T, client types.DB)

TestMoveIssue_EdgeCases tests edge cases for moving issues between channels.

func TestSaveAlert

func TestSaveAlert(t *testing.T, client types.DB)

func TestSaveIssue

func TestSaveIssue(t *testing.T, client types.DB)

func TestSaveIssue_ComplexAlert

func TestSaveIssue_ComplexAlert(t *testing.T, client types.DB)

TestSaveIssue_ComplexAlert tests saving issues with complex alert data.

func TestSaveIssues

func TestSaveIssues(t *testing.T, client types.DB)

func TestSpecialCharactersInCorrelationID

func TestSpecialCharactersInCorrelationID(t *testing.T, client types.DB)

TestSpecialCharactersInCorrelationID tests handling of special characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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