Skip to content

WIP: Enabled BASE64 r/w tests for cv::FileStorage and tuned limits - #16543

Closed
asmorkalov wants to merge 1 commit into
opencv:masterfrom
asmorkalov:asmorkal/base64_xml_rw
Closed

asmorkalov wants to merge 1 commit into
opencv:masterfrom
asmorkalov:asmorkal/base64_xml_rw

Conversation

@asmorkalov

@asmorkalov asmorkalov commented Feb 10, 2020 •

Copy link
Copy Markdown
Contributor

relates #14977

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under OpenCV (BSD) License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@asmorkalov asmorkalov changed the title Enabled BASE64 RW tests for cv::FileStorage and tuned limits. Enabled BASE64 r/w tests for cv::FileStorage and tuned limits. Feb 10, 2020
@asmorkalov asmorkalov added category: core Hackathon https://opencv.org/opencv-hackathon-starts-next-week/ labels Feb 10, 2020
@asmorkalov asmorkalov changed the title Enabled BASE64 r/w tests for cv::FileStorage and tuned limits. WIP: Enabled BASE64 r/w tests for cv::FileStorage and tuned limits Feb 10, 2020
}
std::cout << "Storage size: " << sz << std::endl;
EXPECT_LE(sz, (size_t)6000);
EXPECT_LE(sz, (size_t)11000);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This limit should not be changed.
This check passes on 3.4 branch and is aligned with BASE64 implementation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I checked the generated files manually and got it by myself. The flag is totally ignored in master branch: https://github.com/opencv/opencv/blob/master/modules/core/src/persistence.cpp#L452

@asmorkalov asmorkalov closed this Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants