providertest

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package providertest contains reusable provider conformance checks.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunLifecycle

func RunLifecycle(t *testing.T, tc LifecycleCase) sandbox.Prepared

RunLifecycle exercises the common prepare, sync-to, sync-from, destroy lifecycle.

Types

type LifecycleCase

type LifecycleCase struct {
	Provider         sandbox.Provider
	Backend          sandbox.Backend
	PrepareRequest   sandbox.PrepareRequest
	AssertPrepared   func(*testing.T, sandbox.Prepared)
	AssertFinalState func(*testing.T, sandbox.SessionState)
}

LifecycleCase configures the shared Provider lifecycle compliance suite.

Jump to

Keyboard shortcuts

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