Scripts in this directory sanity-check the *.baseline
files.
Checks that string $unhandledCallingForm
does not appear in baseline files,
since it is used as a placeholder for unimplemented generator features.
From the root of the repository, run ./testutils/check-baselines.sh
Checks that calling forms and value sets tagged in *_gapic.yaml
files is used in baselines.
To test the test, run the following command from repository root:
go test testutils/check-calling-form-in-baseline/*.go
To run the test, run the following command from repository root:
go run testutils/check-calling-form-in-baseline/main.go -yaml src/test/java/com/google/api/codegen/testsrc/library_gapic.yaml src
Checks that calling forms defined in CallingForm.java
are used by the specified languages in the library baselines.
To test the test, run the following command from repository root:
go test testutils/check-lang-uses-form/*.go
To run the test, run the following command from repository root:
go run testutils/check-lang-uses-form/main.go -forms src/main/java/com/google/api/codegen/viewmodel/CallingForm.java src