-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add wrapper for clip_if() and children_if() #27
Conversation
@jradha11 This looks good. You might have missed a few Composable types like Stack. Could you please check if you've covered all of them? Also, I would add a check in the tests for the size equality of the reference and result Lists. |
@KarthikRIyer |
Looks good! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good! I had a few notes to help code readability and maintainability, but nothing major. Glad to have someone keeping the API up to date!
# Conflicts: # src/main/include/utilities.h
Could you also remove this plugin from the build.gradle file? We do not publish to bintray. dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
} |
Looks good. JNIEXPORT jobjectArray JNICALL Java_io_opentimeline_opentimelineio_SerializableCollection_clipIfNative
(JNIEnv *env, jobject thisObj, jobject searchRangeTimeRange, jboolean shallowSearch) I would rename |
will do the change |
I think we're pretty much there! One question, I saw tests for: // Make sure we find expected clips within range
track.childrenIf(Composable.class, Optional.of(search_range), false); and: // Make sure null throws NullPointerException
track.childrenIf(Composable.class, null, false); But I think we were missing: // Make sure full time range is traversed
track.childrenIf(Composable.class, Optional.empty(), false); |
oh yes! I must have missed this edge case. Will add them too! |
Hey @reinecke @KarthikRIyer , |
Oh wow, good catch. I just checked the python implementation and it doesn't seem to have a test for this case.
So, with Does that make sense? Since this test is for language bindings, I don't think it needs to be too rigorous around the behavior of c++ implementation, we just want our testing to verify all the parameters are being passed into the underlying implementation correctly. |
@reinecke |
@jradha11 I think what @reinecke means is that if If So you could create a @reinecke please correct me if I'm wrong. |
@KarthikRIyer @reinecke I have made the changes. I'd love if you could review! :) |
Looks Good! Thanks for seeing this through! |
No description provided.