xref: /aosp_15_r20/tools/metalava/metalava-model-snapshot-testing/README.md (revision 115816f9299ab6ddd6b9673b81f34e707f6bacab)
1# metalava-model-snapshot-testing
2
3The purpose of this module is to test the snapshot mechanism by running the testsuite against a number of different
4providers to create a `Codebase` and then take a snapshot of the `Codebase` and perform the actual test against the
5snapshot. This will ensure that the snapshot provides the same capabilities as the original providers.
6
7It does that by registering a `com.android.tools.metalava.model.testing.transformer.CodebaseTransformer` service which
8is loaded by the `com.android.tools.metalava.model.testsuite.ModelSuiteRunner` and used to transform the `Codebase`
9before performing the test.
10