commit | 4deab28fd4c90f67f98499c73be72870c61ec41b | [log] [tgz] |
---|---|---|
author | Spandan Das <spandandas@google.com> | Thu Mar 30 17:06:32 2023 +0000 |
committer | Spandan Das <spandandas@google.com> | Thu Mar 30 17:06:32 2023 +0000 |
tree | 97a055d8908c679a7453923925c93017b8a9409c | |
parent | e339a2d9a3674c0577e87d2004c6327e56e0f00f [diff] [blame] |
Create a SetBuildFromTextStub method This will be useful for writing unit tests Test: go build ./android Change-Id: If27a050c0cfd0492e0cd3a422ac33f40b7a0a6d5
diff --git a/android/config.go b/android/config.go index 33deba5..038cd0f 100644 --- a/android/config.go +++ b/android/config.go
@@ -1894,3 +1894,7 @@ func (c *config) BuildFromTextStub() bool { return c.buildFromTextStub } + +func (c *config) SetBuildFromTextStub(b bool) { + c.buildFromTextStub = b +}