-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: consolidate duplicate test methods (#1074)
## Overview Closes #1073 Affected packages 1. `pkg` -> `shares` & `prove` - Remove duplicated `generateRandomTransaction`, `generateRandomlySizedTransactions`, `generateRandomBlob`, and `generateRandomlySizedBlobs` 2. `testutil` - Add `factory` package with generator method for the random transaction(s) and random blob(s) - Deprecate blobtestutil - Remove duplicated `GenerateKeyringSigner` and `generateKeyring` methods 3. `x/blob/types` - Refactor keyring generator method in separate file `test_util.go` - Reuse keyring generators from `x/blob/types` in `app` package - Use constants instead of hardcoded strings for the test account and chain id 4. `app`/`app_test` - Refactor all helper generate methods in `app` package's `test_util.go` - Reuse keyring generators from `blobtypes` - Simplify some of the helper generateTxs methods ## Checklist - [X] ~~New and updated code has appropriate documentation~~ - [X] New and updated code has new and/or updated testing - [x] Required CI checks are passing - [X] ~~Visual proof for any user facing features like CLI or documentation updates~~ - [X] Linked issues closed with keywords
- Loading branch information
1 parent
2f89956
commit 3941003
Showing
18 changed files
with
238 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.