ffmpegtest

package
v0.10.0-dev.43 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package ffmpegtest lets a test binary stand in for ffmpeg and ffprobe. A TestMain calling Main acts as the child env names when it is set; Path is the binary a test's Runner runs.

Index

Constants

View Source
const FloodBytes = 1 << 30

FloodBytes is how much "stderr-flood" writes to stderr.

Variables

This section is empty.

Functions

func FloodAt

func FloodAt(i int64) byte

FloodAt is the byte "stderr-flood" writes at offset i, so a test can rebuild any part of the stream.

func Main

func Main(m *testing.M)

Main runs the tests, or acts as the child when env is set.

func Path

func Path() string

Path is the binary to run as ffmpeg and ffprobe: this test binary.

func Use

func Use(t testing.TB, b string)

Use makes the children t starts act as b, a behaviours entry. A child given a file: argument other than the runner's fd 3 exits 2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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