package ptesting

import "github.com/bep/goportabletext/internal/ptesting"

Index

Functions

func IsCI

func IsCI() bool

IsCI reports whether the tests are running in a CI environment.

Types

type BlockContentToMarkdownHelper

type BlockContentToMarkdownHelper interface {
	SkipFiles() map[string]bool
	GenerateGolden() error
	ForEachGoldenPair(func(sourceName, targetName, sourceContent, targetContent string) error) error
}

func NewBlockContentToMarkdownHelper

func NewBlockContentToMarkdownHelper(sourceDir, targetDir string) (BlockContentToMarkdownHelper, error)

func NewSamplesBlockContentToMarkdownHelper

func NewSamplesBlockContentToMarkdownHelper() (BlockContentToMarkdownHelper, error)

func NewUpstreamBlockContentToMarkdownHelper

func NewUpstreamBlockContentToMarkdownHelper() (BlockContentToMarkdownHelper, error)

Source Files

testhelpers.go

Version
v0.1.0 (latest)
Published
Feb 25, 2025
Platform
js/wasm
Imports
7 packages
Last checked
1 month ago

Tools for package owners.