summaryrefslogtreecommitdiff
path: root/android/testing.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2024-09-11 13:26:20 -0700
committer Cole Faust <colefaust@google.com> 2024-09-11 14:48:50 -0700
commit4e2bf9fb2d3ede98da38a6574a17a6ec2d6bb84e (patch)
treefa8d381aefa64c98631867ccb1374da6c30221ca /android/testing.go
parente8a8783154dc31f3e09e3bb98a8b11233358097d (diff)
Add HasMutatorFinished
To enforce that selects are only evaluated after a certain point in a followup cl. Bug: 323382414 Test: m nothing --no-skip-soong-tests Change-Id: Ib215fedb904aa2e5f4d65cfd26a23f527eb4983e
Diffstat (limited to 'android/testing.go')
-rw-r--r--android/testing.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/android/testing.go b/android/testing.go
index 42cd1ebbe..1ee6e4cdb 100644
--- a/android/testing.go
+++ b/android/testing.go
@@ -1326,6 +1326,10 @@ func (ctx *panickingConfigAndErrorContext) Config() Config {
return ctx.ctx.Config()
}
+func (ctx *panickingConfigAndErrorContext) HasMutatorFinished(mutatorName string) bool {
+ return ctx.ctx.HasMutatorFinished(mutatorName)
+}
+
func PanickingConfigAndErrorContext(ctx *TestContext) ConfigurableEvaluatorContext {
return &panickingConfigAndErrorContext{
ctx: ctx,