Lines Matching defs:TestContext

183 type TestContext struct {  struct
184 *Context
185 preArch, preDeps, postDeps, finalDeps []RegisterMutatorFunc
186 NameResolver *NameResolver
189 singletons sortableComponents
193 mutatorOrder, singletonOrder []string
196 func (ctx *TestContext) PreArchMutators(f RegisterMutatorFunc) {
200 func (ctx *TestContext) HardCodedPreArchMutators(f RegisterMutatorFunc) {
205 func (ctx *TestContext) moduleProvider(m blueprint.Module, p blueprint.AnyProviderKey) (any, bool) {
209 func (ctx *TestContext) PreDepsMutators(f RegisterMutatorFunc) {
213 func (ctx *TestContext) PostDepsMutators(f RegisterMutatorFunc) {
217 func (ctx *TestContext) FinalDepsMutators(f RegisterMutatorFunc) {
221 func (ctx *TestContext) OtherModuleProviderAdaptor() OtherModuleProviderContext {
430 func (ctx *TestContext) Register() {
447 …ctx *TestContext) ParseFileList(rootDir string, filePaths []string) (deps []string, errs []error) {
453 func (ctx *TestContext) ParseBlueprintsFiles(rootDir string) (deps []string, errs []error) {
459 func (ctx *TestContext) RegisterModuleType(name string, factory ModuleFactory) {
463 func (ctx *TestContext) RegisterSingletonModuleType(name string, factory SingletonModuleFactory) {
469 …tx *TestContext) RegisterParallelSingletonModuleType(name string, factory SingletonModuleFactory) {
475 func (ctx *TestContext) RegisterSingletonType(name string, factory SingletonFactory) {
479 func (ctx *TestContext) RegisterParallelSingletonType(name string, factory SingletonFactory) {
489 …*TestContext) ModuleVariantForTests(name string, matchVariations map[string]string) TestingModule {
543 func (ctx *TestContext) ModuleForTests(name, variant string) TestingModule {
575 func (ctx *TestContext) ModuleVariantsForTests(name string) []string {
586 func (ctx *TestContext) SingletonForTests(name string) TestingSingleton {
646 func (ctx *TestContext) InstallMakeRulesForTesting(t *testing.T) []InstallMakeRule {
687 …tx *TestContext) MakeVarsForTesting(filter func(variable MakeVarVariable) bool) []MakeVarVariable {
699 func (ctx *TestContext) Config() Config {
1123 func AndroidMkEntriesForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) []AndroidMkEntri…
1139 func AndroidMkDataForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) AndroidMkData {
1311 func PanickingConfigAndErrorContext(ctx *TestContext) ConfigAndErrorContext {