Skip to content

test: Add test for account objects#7625

Open
kuznetsss wants to merge 2 commits into
XRPLF:developfrom
kuznetsss:Add_test_for_account_objects
Open

test: Add test for account objects#7625
kuznetsss wants to merge 2 commits into
XRPLF:developfrom
kuznetsss:Add_test_for_account_objects

Conversation

@kuznetsss

Copy link
Copy Markdown
Contributor

High Level Overview of Change

Add a test case for account objects checking it doesn't show cancelled offers.

Context of Change

API Impact

  • Public API: New feature (new methods and/or new fields)
  • Public API: Breaking change (in general, breaking changes should only impact the next api_version)
  • libxrpl change (any change that may affect libxrpl or dependents of libxrpl)
  • Peer protocol change (must be backward compatible or bump the peer protocol version)

@codecov

codecov Bot commented Jun 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.0%. Comparing base (07c64f0) to head (2af88c9).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           develop   #7625   +/-   ##
=======================================
  Coverage     82.0%   82.0%           
=======================================
  Files         1007    1007           
  Lines        76890   76890           
  Branches      8971    8966    -5     
=======================================
  Hits         63050   63050           
  Misses       13831   13831           
  Partials         9       9           

see 3 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

seqs.reserve(numEntries);
for ([[maybe_unused]] auto _ : std::ranges::iota_view{0, numEntries})
{
json::Value params;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we add calls to testcase() to describe what each section is testing which rpc command?

void
testAccountObjectDoesntShowCancelledOffers()
{
testcase("AccountObjectDoesntShowCancelledOffers");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This test case name doesn't seem to be very human-readable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants