previewfixture

package
v1.0.68 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package previewfixture contains only test boundaries for mobile-image-preview-noauth.

Index

Constants

View Source
const Env = "DWS_MOBILE_IMAGE_PREVIEW_NOAUTH"

Variables

This section is empty.

Functions

func AssertCalls

func AssertCalls(t *testing.T, caller *Caller, created bool, count int)

func AssertElement

func AssertElement(t *testing.T, caller *Caller, index int, inline, hasID bool, mime, file string)

func MakeFile

func MakeFile(t *testing.T, file string, size int64)

func MustRunShared

func MustRunShared(t *testing.T, caller *Caller, file, mime string, size int64)

func RunShared

func RunShared(t *testing.T, caller *Caller, file, mime string, size int64) error

Types

type Caller

type Caller struct {
	Tools         []string
	Elements      []map[string]any
	ResourceIDs   []string
	ResourceURL   string
	Uploads       int
	FailStage     string
	OnCredentials func()
	UploadInfo    map[string]any
	RawUploadText string
	WrapReceipt   bool
	ReadbackURL   string
	OnReadback    func()
	Context       context.Context
	Result        any
	// contains filtered or unexported fields
}

func New

func New(t *testing.T) *Caller

func (*Caller) CallTool

func (c *Caller) CallTool(_ context.Context, product, tool string, args map[string]any) (*edition.ToolResult, error)

func (*Caller) DryRun

func (*Caller) DryRun() bool

func (*Caller) Fields

func (*Caller) Fields() string

func (*Caller) Format

func (*Caller) Format() string

func (*Caller) JQ

func (*Caller) JQ() string

Jump to

Keyboard shortcuts

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