summaryrefslogtreecommitdiff
path: root/python/python.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2021-03-16 17:46:12 +0000
committer Paul Duffin <paulduffin@google.com> 2021-03-17 16:10:56 +0000
commit50deaae8720306fc75ee4989114cc292d60d12df (patch)
tree191d3825c2610b8dedd01d5f4b098bfc320ff631 /python/python.go
parentd210afa4063ced933d7d8dbe43be85c02e399e53 (diff)
Add OptionalFixturePreparer
Sometimes it is necessary to optionally add a preparer. e.g. There are many parameterized tests where one of the parameters is some additional test setup but not every test provides it so it will default to the "zero" value of whatever type is used for the test setup parameter Migrating those tests to use test fixtures will typically require that the test setup parameter be changed to a FixturePreparer, which by default will be nil. Attempting to use a nil FixturePreparer in the test fixtures will fail so the OptionalFixturePreparer was added to wrap a possibly nil FixturePreparer and thereby avoiding complicating each test with similar logic. Bug: 182885307 Test: m nothing Change-Id: Ia12b2af2105fdc69af4e0b909a37a7b86f1af299
Diffstat (limited to 'python/python.go')
0 files changed, 0 insertions, 0 deletions