package
0.0.0-20230226003218-1dd1f65bfa42
Repository: https://github.com/c4-project/c4t.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ArchOfFile tries to divine the architecture ID of a Litmus test by reading its first line from file fpath.
ArchOfLitmus tries to look up the C4 identifier of a Litmus architecture.
ArchToLitmus tries to look up the Litmus name of a C4 architecture ID.
New constructs a litmus record for slashpath path and options os.
NewOrPanic is like New, but panics if there's an error.
Options bundles the options in os into one option.
PopulateStatsFrom is an option that causes the litmus test to populate its statistics set using s and ctx.
ReadArchFromFile is an option that causes the litmus test to populate its architecture from its given file.
WithArch is an option that forces the litmus test's architecture to be id.
WithThreads is an option that sets the test's thread count to threads.

# Variables

ErrBadArch occurs when the arch ID sent to the Litmus backend doesn't match any of the ones known to it.
ErrEmptyArch occurs when the arch ID sent to the Litmus backend is empty.
ErrStatDumperNil occurs when we try to use a nil stat dumper with PopulateStatsFrom.

# Structs

AtomicStatset contains a set of statistics about atomics (expressions or statements).
Litmus contains information about a single litmus test file.
Statset contains a set of statistics acquired from `c4f-c dump-stats`.

# Interfaces

StatDumper is the interface of things that can dump statistics for a litmus test.

# Type aliases

Option is the type of options to the litmus-test record constructor.