Lines Matching defs:TestContext

219 type TestContext struct {  struct
220 *Context
221 preArch, preDeps, postDeps, postApex, finalDeps []RegisterMutatorFunc
222 NameResolver *NameResolver
225 singletons sortableComponents
229 mutatorOrder, singletonOrder []string
232 func (ctx *TestContext) PreArchMutators(f RegisterMutatorFunc) {
236 func (ctx *TestContext) HardCodedPreArchMutators(f RegisterMutatorFunc) {
241 …ctx *TestContext) otherModuleProvider(m blueprint.Module, p blueprint.AnyProviderKey) (any, bool) {
245 func (ctx *TestContext) PreDepsMutators(f RegisterMutatorFunc) {
249 func (ctx *TestContext) PostDepsMutators(f RegisterMutatorFunc) {
253 func (ctx *TestContext) PostApexMutators(f RegisterMutatorFunc) {
257 func (ctx *TestContext) FinalDepsMutators(f RegisterMutatorFunc) {
261 func (ctx *TestContext) OtherModuleProviderAdaptor() OtherModuleProviderContext {
267 …text) OtherModulePropertyErrorf(module Module, property string, fmt_ string, args ...interface{}) {
474 func (ctx *TestContext) Register() {
491 …ctx *TestContext) ParseFileList(rootDir string, filePaths []string) (deps []string, errs []error) {
497 func (ctx *TestContext) ParseBlueprintsFiles(rootDir string) (deps []string, errs []error) {
503 func (ctx *TestContext) RegisterModuleType(name string, factory ModuleFactory) {
507 func (ctx *TestContext) RegisterSingletonModuleType(name string, factory SingletonModuleFactory) {
513 …tx *TestContext) RegisterParallelSingletonModuleType(name string, factory SingletonModuleFactory) {
519 func (ctx *TestContext) RegisterSingletonType(name string, factory SingletonFactory) {
523 func (ctx *TestContext) RegisterParallelSingletonType(name string, factory SingletonFactory) {
533 …*TestContext) ModuleVariantForTests(name string, matchVariations map[string]string) TestingModule {
587 func (ctx *TestContext) ModuleForTests(name, variant string) TestingModule {
619 func (ctx *TestContext) ModuleVariantsForTests(name string) []string {
630 func (ctx *TestContext) SingletonForTests(name string) TestingSingleton {
690 func (ctx *TestContext) InstallMakeRulesForTesting(t *testing.T) []InstallMakeRule {
731 …tx *TestContext) MakeVarsForTesting(filter func(variable MakeVarVariable) bool) []MakeVarVariable {
743 func (ctx *TestContext) Config() Config {
1155 func AndroidMkEntriesForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) []AndroidMkEntri…
1171 func AndroidMkInfoForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) *AndroidMkProviderI…
1195 func AndroidMkDataForTest(t *testing.T, ctx *TestContext, mod blueprint.Module) AndroidMkData {
1381 func PanickingConfigAndErrorContext(ctx *TestContext) ConfigurableEvaluatorContext {