Skip to content

Commit

Permalink
Fixed typos and added missing invalid cases to godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
AndriiDiachuk committed Dec 23, 2024
1 parent 317eb0e commit 679ef2f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package data_providers
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func (s *TransactionStatusesProviderSuite) SetupTest() {
s.log,
nil,
s.api,
flow.Testnet.Chain(),
s.chain,
state_stream.DefaultEventFilterConfig,
subscription.DefaultHeartbeatInterval)
s.Require().NotNil(s.factory)
Expand Down Expand Up @@ -159,13 +159,13 @@ func (s *TransactionStatusesProviderSuite) requireTransactionStatuses(
s.Require().ElementsMatch(expectedAccountStatusesResponse, actualResponse.TransactionResults)
}

// TestAccountStatusesDataProvider_InvalidArguments tests the behavior of the transaction statuses data provider
// TestTransactionStatusesDataProvider_InvalidArguments tests the behavior of the transaction statuses data provider
// when invalid arguments are provided. It verifies that appropriate errors are returned
// for missing or conflicting arguments.
// This test covers the test cases:
// 1. Invalid 'tx_id' argument.
// 2. Invalid 'start_block_id' argument.
func (s *TransactionStatusesProviderSuite) TestAccountStatusesDataProvider_InvalidArguments() {
func (s *TransactionStatusesProviderSuite) TestTransactionStatusesDataProvider_InvalidArguments() {
ctx := context.Background()
send := make(chan interface{})

Expand Down Expand Up @@ -193,8 +193,10 @@ func (s *TransactionStatusesProviderSuite) TestAccountStatusesDataProvider_Inval
// a set of input arguments, and the expected error message that should be returned.
//
// The test cases cover scenarios such as:
// 1. Providing invalid 'tx_id' value.
// 2. Providing invalid 'start_block_id' value.
// 1. Providing both 'start_block_id' and 'start_block_height' simultaneously.
// 2. Providing invalid 'tx_id' value.
// 3. Providing invalid 'start_block_id' value.
// 4. Invalid 'start_block_id' argument.
func invalidTransactionStatusesArgumentsTestCases() []testErrType {
return []testErrType{
{
Expand Down

0 comments on commit 679ef2f

Please sign in to comment.