previewfixture

package
v1.0.69 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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