Open daneshk opened 11 months ago
MockClient
is defined in the tests folder of db
, right? We can't refer to test constructs outside the tests.
As with https://github.com/ballerina-platform/ballerina-lang/issues/41474, this should result in a compilation error for db:MockClient
.
MockClient
is defined in the tests folder ofdb
, right? We can't refer to test constructs outside the tests.As with #41474, this should result in a compilation error for
db:MockClient
.
Yes, the generated folder structure looks like below,
This is happen with the check expression
.
Inside the check expression we add a silentCheck
to check the type of the expression followed by check.
A bug in that scenario lead to this null point exception
Description
$subject, please.
When trying to mock the generated persist client(pointing to MySQL DB) using the generated mock client(pointing to H2 DB) in the test file like below,
Note: Here both client codes are inside the
generated
directory, under a submodule calleddb
Get the following error,
Steps to Reproduce
Check out and build the
mock_with_h2
project in github repobranch:
move_generated_dir
-> Compilation
Related issue(s)
Cannot read field "tag" because "referredType" is null