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

Feature: smartcontract and state unit tests #289

Merged
merged 8 commits into from
Jun 2, 2021

Conversation

MurashovVen
Copy link
Contributor

  1. Added smartcontract unit tests.
  2. Added state unit tests.
  3. Mocks:
  • Added new mocks.
  • Existing mocks are moved in a single package.

- adding new mocks
- moving existing mocks in single package
- adding generate_mocks.sh
code/go/0chain.net/chaincore/smartcontract/handler_test.go Outdated Show resolved Hide resolved
code/go/0chain.net/chaincore/smartcontract/handler_test.go Outdated Show resolved Hide resolved
code/go/0chain.net/chaincore/state/state_debug_test.go Outdated Show resolved Hide resolved
code/go/0chain.net/chaincore/state/state_debug_test.go Outdated Show resolved Hide resolved
code/go/0chain.net/chaincore/state/state_debug_test.go Outdated Show resolved Hide resolved
code/go/0chain.net/chaincore/state/state_debug_test.go Outdated Show resolved Hide resolved
code/go/0chain.net/chaincore/state/state_debug_test.go Outdated Show resolved Hide resolved
code/go/0chain.net/chaincore/state/state_debug_test.go Outdated Show resolved Hide resolved
- code refactoring
- fixing race issues
…ct_and_state_unit_tests

# Conflicts:
#	generate_mocks.sh
Copy link
Contributor

@Sriep Sriep left a comment

Choose a reason for hiding this comment

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

Need to merge in changes to TestGetSmartContract.

Sriep added 2 commits June 2, 2021 11:43
…ct_and_state_unit_tests

# Conflicts:
#	code/go/0chain.net/chaincore/smartcontract/handler_test.go
@Sriep Sriep merged commit 3e23cc5 into master Jun 2, 2021
@Sriep Sriep deleted the feature/smartcontract_and_state_unit_tests branch June 2, 2021 12:02
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.

None yet

2 participants