Skip to content
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

Fix#27796 Added condition and test case for the getData parameter input functionality #27843

Conversation

Manideep-Kanna
Copy link
Contributor

@Manideep-Kanna Manideep-Kanna commented Dec 1, 2024

This fixes #27796
Implemented the exception for the passing parameter scenario for getData function

  • Added condition to check if parameters are passed or not
  • Added tests in Tensor.test.js

@Manideep-Kanna Manideep-Kanna requested a review from a team as a code owner December 1, 2024 04:17
@github-actions github-actions bot added the category: JS API OpenVino JS API Bindings label Dec 1, 2024
@sys-openvino-ci sys-openvino-ci added the ExternalPR External contributor label Dec 1, 2024
@Manideep-Kanna Manideep-Kanna changed the title Added condition and test case for the getData parameter input functionality Fix#27796 Added condition and test case for the getData parameter input functionality Dec 1, 2024
Copy link
Contributor

@almilosz almilosz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for taking up this task! Please look at the comment :)

Napi::Env env = info.Env();
if (info.Length() > 0) {
reportError(env, "getData() does not accept any arguments.");
return env.Undefind
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return env.Undefind
return env.Undefined();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @almilosz, thank you for pointing out the issue. Sorry, I forgot to push the commit. Doing the push right now. Can you please review it.

Napi::Env env = info.Env();
if (info.Length() > 0) {
reportError(env, "getData() does not accept any arguments.");
return env.Undefined()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return env.Undefined()
return env.Undefined();

there is a semicolon missing ;) I recommend checking git status carefully, building the project and running tests before pushing changes

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done @almilosz

@almilosz
Copy link
Contributor

build_jenkins

@vishniakov-nikolai vishniakov-nikolai added this pull request to the merge queue Dec 11, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2024
@vishniakov-nikolai vishniakov-nikolai added this pull request to the merge queue Dec 11, 2024
Merged via the queue into openvinotoolkit:master with commit c4daa25 Dec 11, 2024
170 checks passed
@mlukasze mlukasze added this to the 2025.0 milestone Dec 12, 2024
11happy pushed a commit to 11happy/openvino that referenced this pull request Dec 23, 2024
…ut functionality (openvinotoolkit#27843)

This fixes openvinotoolkit#27796 
Implemented the exception for the passing parameter scenario for getData
function

- Added condition to check if parameters are passed or not
- Added tests in Tensor.test.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: JS API OpenVino JS API Bindings ExternalPR External contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Good First Issue]: [OV JS] Add check for arguments to Tensor.getData()
5 participants