Closed mrambacher closed 1 year ago
Why implement both the C interface and the JAVA interface in the same PR?
Please update HISTORY.md
Please add the license text to all of the files.
@mrambacher - Could you please address all of the comments? Thanks
waiting on #740
@mrambacher - #742 is now merged. Please adapt this PR accordingly. Thanks
@mrambacher - Please add some simple JAVA sample code to demo the use of the enable speedb feature in JAVA. Maybe a new EnableSpeedbFeaturesSample.java?
What about unit tests to test the interface?
What about unit tests to test the interface?
How would you like the API to be tested? Given a SharedOptions, I cannot test that the EnableSpeedb method does anything as I cannot get the information out of the corresponding APIs. For example, there is no Options::GetCache equivalent in C or Java that will return the Cache.
What about unit tests to test the interface?
How would you like the API to be tested? Given a SharedOptions, I cannot test that the EnableSpeedb method does anything as I cannot get the information out of the corresponding APIs. For example, there is no Options::GetCache equivalent in C or Java that will return the Cache.
Please write code that does the best we can at the moment. You can test the simple accessors that will be exposed in JAVA. A JAVA sample code will also demo how the interface should be used by a JAVA user. And, that JAVA code will at least prove that the code compiles and runs without failing.
@mrambacher:
@mrambacher:
- Please address (comment in some way) all of the comments I haven't resolved.
- Please let me know when you have completed pushing all of the commits that address the comments so I will review the updates. Thanks
@udi-speedb All comments are addressed, except the renaming of the method. I did not add a sample but added some unit tests. Feel free to raise another issue suggesting there should be samples
Closing - To be replace by another pull request.
Fixes: #701
Added Java and C wrappers for SharedOptions and EnableSpeedbFeatures.
Note that I do not know how to test most of this as C/Java have no mechanism of getting the fields that were set via SharedOptions into their wrappers (e.g. I do not know how to get the Cache from an Options -- only how to set it).