statetest

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: MIT Imports: 5 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 statetest helps tests write session files by the names of the old flat layout (<id>.txt, .<id>.state), which many of them are written in, into the session folders of the layout in use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Path

func Path(s state.Store, name string) string

Path is where a file of the old layout goes now. A name that is not a session's file (inbox.queue, a bad name) stays in the root.

func Put

func Put(t testing.TB, s state.Store, name, body string, age time.Duration) string

Put writes a file named as in the old layout, makes its folder, and sets its modification time when age is not zero (age ago, from now).

func PutAt

func PutAt(t testing.TB, s state.Store, name, body string, at time.Time) string

PutAt is Put with a fixed modification time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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