Skip to contents

HTEST_FN() is a developer-interface function, a constructor for user-facing test functions like TTEST(). It returns a function with a consistent signature that routes to the correct implementation based on the model ID and method variant.

Usage

HTEST_FN(cls, defs, .name)

Arguments

cls

A string naming the test class, e.g. "ttest".

defs

A list of test_define objects declaring the implementations.

.name

A string used as the test title in output.

Value

A function with signature function(.model, .data, ...).