Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

EPE-672: Added unit test framework #10112

Merged
merged 3 commits into from
Mar 8, 2021
Merged

Conversation

rusty-block-one
Copy link
Contributor

Change Description

Added unit test framework for net_plugin.

Change Type

Select ONE:

  • Documentation
  • Stability bug fix
  • Other
  • Other - special case

Testing Changes

Select ANY that apply:

  • New Tests
  • Existing Tests
  • Test Framework
  • CI System
  • Other

Consensus Changes

  • Consensus Changes

API Changes

  • API Changes

Documentation Additions

  • Documentation Additions

Needed to remove a line
@dimas1185 dimas1185 self-requested a review March 5, 2021 20:12
}

boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {
// Turn off blockchain logging if no --verbose parameter is not added
Copy link
Contributor

Choose a reason for hiding this comment

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

this sentence sounds awkward. Maybe something like "Turn off logging if --verbose parameter was not provided" ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reworded the sentence


boost::unit_test::test_suite* init_unit_test_suite(int argc, char* argv[]) {
// Turn off blockchain logging if no --verbose parameter is not added
// To have verbose enabled, call "tests/chain_test -- --verbose"
Copy link
Contributor

Choose a reason for hiding this comment

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

please rename "chain_test". Maybe tests/ ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Reworded


std::srand(time(NULL));
std::cout << "Random number generator seeded to " << time(NULL) << std::endl;
/*
Copy link
Contributor

Choose a reason for hiding this comment

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

is this comment necessary? if it is, please explain how use that code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

#include <fc/log/logger.hpp>
#include <eosio/chain/exceptions.hpp>

//extern uint32_t EOS_TESTING_GENESIS_TIMESTAMP;
Copy link
Contributor

Choose a reason for hiding this comment

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

likely needs to be removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

Copy link
Contributor

@dimas1185 dimas1185 left a comment

Choose a reason for hiding this comment

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

please cleanup unnecessary copy-paste comments

1) Removed unused code
2) Clarified comments
3) Disabled cmake processing until a test is added
@brianjohnson5972 brianjohnson5972 merged commit de8be5d into feature-privacy Mar 8, 2021
@kj4ezj kj4ezj deleted the unittest branch July 19, 2021 17:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants