clitest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package clitest builds small, valid SOFA files for the command tests in cmd/. It is internal and not a supported API.

Index

Constants

View Source
const (
	M = 3
	R = 2
)

Dimensions of every file Build returns (E is 2 for TF-E).

Variables

This section is empty.

Functions

func Build

func Build(dataType string) *sofa.File

Build returns an in-memory file of the given DataType (sofa.DataTypeFIR, DataTypeTF, DataTypeTFE or DataTypeSOS) with M measurements, R receivers and deterministic data: sample k of measurement m, receiver r (and emitter e) is 100m + 10r + k (+ 1000e). FIR files carry a per-receiver Delay of {0, 2.5}.

func Write

func Write(t testing.TB, dir, name, dataType string) string

Write saves Build(dataType) as dir/name and returns its path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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