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

chore(primitives): Dropped hex.String #2048

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

abi87
Copy link
Contributor

@abi87 abi87 commented Oct 7, 2024

Dropped hex.String type with the following steps:

  • Dropped json.go file from hex package. Moved UTs to client packages.
  • Dropped To/FromUInt64 String attributes. Only the counterparts in u64.go file are really used. Moved relevant UTs.
  • Pulled BigInt methods out of hex.String into their own function.
  • Dropped hex.NewString ctor and hex.String type as a whole

The somewhat large number of lines changed is consequence of the reshuffling of tests to different files.

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Introduced new functions for encoding and decoding big integers as hexadecimal strings.
    • Added validation functions for hex strings and quoted strings.
    • Enhanced JSON unmarshalling tests for byte arrays.
  • Bug Fixes

    • Improved error handling for invalid inputs in hexadecimal string processing.
    • Added input validation in JSON unmarshalling for better error reporting.
  • Tests

    • Updated test cases for better clarity and consistency, including new scenarios for positive values and refined error assertions.
    • Added assertions to ensure stability and prevent runtime errors in encoding functions.

@abi87 abi87 self-assigned this Oct 7, 2024
Copy link
Contributor

coderabbitai bot commented Oct 7, 2024

Walkthrough

The changes in this pull request introduce new functionalities for encoding and decoding big integers as hexadecimal strings in the hex package. Key functions include FromBigInt, ToBigInt, and MustToBigInt. Additionally, the validation mechanisms for input strings in several files have been enhanced, with new functions like IsValidHex and ValidateQuotedString. The test files have also been updated to reflect these changes, improving the robustness and clarity of the tests.

Changes

File Path Change Summary
mod/primitives/pkg/encoding/hex/big_int.go Added methods for encoding and decoding big integers as hexadecimal strings: FromBigInt, ToBigInt, and MustToBigInt.
mod/primitives/pkg/encoding/hex/bytes.go Modified DecodeFixedJSON to use ValidateQuotedString for input validation, enhancing error handling.
mod/primitives/pkg/encoding/hex/format.go Introduced IsValidHex and ValidateQuotedString for improved hex and quoted string validation, removed isQuotedString.
mod/primitives/pkg/encoding/hex/u64.go Removed ValidateUnmarshalInput, shifting input validation management during unmarshaling.
mod/primitives/pkg/encoding/hex/bytes_test.go Added a require.NotPanics assertion in TestEncodeAndDecodeBytes for hex.MustToBytes.
mod/primitives/pkg/encoding/hex/u64_test.go Updated TestMarshalText to expect byte slices, renamed TestValidateUnmarshalInput to TestValidateQuotedString, and modified error assertions in TestUnmarshalUint64Text.
mod/primitives/pkg/bytes/b_test.go Introduced TestBytesUnmarshalJSONText to validate JSON unmarshalling of byte arrays with various test cases.
mod/primitives/pkg/math/u64.go Enhanced UnmarshalJSON method to include input validation via hex.ValidateQuotedString.
mod/primitives/pkg/math/u64_test.go Expanded TestU64_UnmarshalJSON with new test cases for invalid JSON and empty JSON text.

Possibly related PRs

Suggested reviewers

  • itsdevbear
  • nidhi-singh02
  • ocnc

Poem

In the realm of tests, a rabbit hops,
With byte slices now, the old string stops.
Validations clear, errors now refined,
In the garden of hex, our code's well-defined!
With each little test, we bounce with glee,
For clarity reigns, as bright as can be! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 79.45205% with 15 lines in your changes missing coverage. Please review.

Project coverage is 23.39%. Comparing base (b1c61d0) to head (0c4759c).

Files with missing lines Patch % Lines
mod/primitives/pkg/encoding/hex/big_int.go 72.09% 9 Missing and 3 partials ⚠️
mod/primitives/pkg/encoding/hex/format.go 81.25% 2 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2048      +/-   ##
==========================================
- Coverage   23.50%   23.39%   -0.12%     
==========================================
  Files         356      355       -1     
  Lines       16054    16025      -29     
  Branches       12       12              
==========================================
- Hits         3774     3749      -25     
+ Misses      12115    12111       -4     
  Partials      165      165              
Files with missing lines Coverage Δ
mod/primitives/pkg/bytes/b.go 100.00% <100.00%> (ø)
mod/primitives/pkg/encoding/hex/bytes.go 90.38% <100.00%> (+6.07%) ⬆️
mod/primitives/pkg/encoding/hex/u64.go 86.36% <ø> (-2.53%) ⬇️
mod/primitives/pkg/math/u64.go 100.00% <100.00%> (ø)
mod/primitives/pkg/encoding/hex/format.go 61.53% <81.25%> (+9.53%) ⬆️
mod/primitives/pkg/encoding/hex/big_int.go 72.09% <72.09%> (ø)

... and 1 file with indirect coverage changes

@abi87 abi87 marked this pull request as ready for review October 7, 2024 16:13
@abi87 abi87 requested a review from itsdevbear as a code owner October 7, 2024 16:13
@abi87 abi87 changed the title chore(primitives): dropping hex.String chore(primitives): Droppedhex.String Oct 7, 2024
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 9

🧹 Outside diff range comments (1)
mod/primitives/pkg/encoding/hex/u64_test.go (1)

Line range hint 57-77: Improved TestValidateQuotedString function

The changes to this test function are well-implemented:

  1. The function has been correctly renamed to TestValidateQuotedString, reflecting the changes in the tested function.
  2. The function now calls hex.ValidateQuotedString, which is consistent with the renaming.
  3. Error handling has been simplified, improving readability.

These changes align well with the PR objectives of streamlining the code.

However, a minor improvement could be made to the error assertion:

Consider using require.ErrorIs instead of require.Equal for error comparison. This change would make the test more robust against potential wrapping of errors in the future. Here's the suggested change:

- require.Equal(t, test.expected, err)
+ require.ErrorIs(t, err, test.expected)

This change would apply to line 73 of the provided code.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between 1c0a378 and 8efb9e0.

📒 Files selected for processing (13)
  • mod/primitives/pkg/bytes/b.go (1 hunks)
  • mod/primitives/pkg/bytes/b_test.go (2 hunks)
  • mod/primitives/pkg/encoding/hex/big_int.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/bit_int_test.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/bytes.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/format.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/format_test.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/hex_test.go (0 hunks)
  • mod/primitives/pkg/encoding/hex/string.go (0 hunks)
  • mod/primitives/pkg/encoding/hex/u64.go (0 hunks)
  • mod/primitives/pkg/encoding/hex/u64_test.go (3 hunks)
  • mod/primitives/pkg/math/u64.go (1 hunks)
  • mod/primitives/pkg/math/u64_test.go (1 hunks)
💤 Files with no reviewable changes (3)
  • mod/primitives/pkg/encoding/hex/hex_test.go
  • mod/primitives/pkg/encoding/hex/string.go
  • mod/primitives/pkg/encoding/hex/u64.go
🧰 Additional context used
🔇 Additional comments (18)
mod/primitives/pkg/bytes/b.go (1)

39-43: Improved input validation and consistency in UnmarshalJSON

The changes to the UnmarshalJSON method are well-structured and improve the overall robustness of the code. The addition of input validation using hex.ValidateQuotedString is a good practice. The use of b.UnmarshalText promotes code reuse and aligns with Go's standard library approach.

To ensure full compatibility, let's verify the behavior of hex.ValidateQuotedString:

✅ Verification successful

Validation of hex.ValidateQuotedString Confirmed

The ValidateQuotedString function is properly implemented and has corresponding test coverage, ensuring that input validation behaves as expected. This verifies the correctness and robustness of the changes made to the UnmarshalJSON method.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the implementation of hex.ValidateQuotedString

# Test: Check the implementation of ValidateQuotedString
ast-grep --lang go --pattern 'func ValidateQuotedString(input []byte) ([]byte, error) {
  $$$
}'

# Test: Check for any tests related to ValidateQuotedString
rg --type go -i 'func TestValidateQuotedString'

Length of output: 712

mod/primitives/pkg/encoding/hex/format_test.go (2)

21-21: Approved: Package name change enhances test isolation

Changing the package name from hex to hex_test is a good practice. This change ensures that the tests are using the public API of the hex package and prevents test code from being included in the main package.


Line range hint 1-71: Verify the removal of UnmarshalJSONText function

The AI summary mentions the removal of the UnmarshalJSONText function, but this change is not visible in the provided diff. It's important to verify that this removal doesn't negatively impact the package's functionality.

Please run the following script to check for any remaining references to UnmarshalJSONText:

If this search returns any results, we should review those occurrences to ensure they've been properly addressed or removed.

✅ Verification successful

Verified the removal of UnmarshalJSONText from the hex package.
There are no remaining references to UnmarshalJSONText in the pkg/encoding/hex directory.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any remaining references to UnmarshalJSONText in the hex package

# Test: Search for UnmarshalJSONText in the hex package
rg --type go "UnmarshalJSONText" pkg/encoding/hex

Length of output: 106


Script:

#!/bin/bash
# Description: Search the entire repository for any references to UnmarshalJSONText

# Search for UnmarshalJSONText in all Go files within the repository
rg --type go "UnmarshalJSONText"

Length of output: 115

mod/primitives/pkg/encoding/hex/big_int.go (3)

1-23: LGTM: License, package declaration, and import are correct.

The license header, package declaration, and import statement are all appropriate and correctly implemented.


73-81: LGTM: MustToBigInt function is correctly implemented.

The MustToBigInt function is a well-implemented wrapper around ToBigInt. It correctly panics on error and provides a clear, documented API for cases where the caller wants to avoid error checking.


1-81: Overall, the file is well-implemented and aligns with PR objectives.

This new file successfully introduces the functionality for encoding and decoding big integers as hexadecimal strings, as described in the AI-generated summary. The implementation is generally robust, with proper error handling and clear function signatures.

The changes align well with the PR objectives of streamlining the hex package by introducing standalone functions for BigInt operations that were previously part of the removed hex.String type.

A few minor improvements were suggested:

  1. Clarifying the precondition for the FromBigInt function.
  2. A potential optimization in the ToBigInt function for common cases.

These changes will further enhance the clarity and efficiency of the code.

mod/primitives/pkg/encoding/hex/u64_test.go (2)

34-41: Improved test cases for TestMarshalText

The changes to the TestMarshalText function are well-implemented:

  1. The expected output type has been correctly changed from string to []byte, which is more consistent with the typical return type of MarshalText methods in Go.
  2. A new test case for a positive value (12345) has been added, improving the test coverage by including a non-zero, non-max value.

These changes enhance the robustness and completeness of the test suite.


44-52: Enhanced test coverage in TestMarshalText

The changes to the test execution logic in TestMarshalText are well-implemented:

  1. The assertion has been correctly updated to use the new []byte expected type, maintaining consistency with the test case changes.
  2. A decoding step has been added (lines 50-52), which verifies the roundtrip consistency of the marshaling and unmarshaling process. This significantly improves the test coverage by ensuring that the encoded value can be correctly decoded back to its original form.

These changes enhance the overall quality and reliability of the test suite.

mod/primitives/pkg/encoding/hex/bit_int_test.go (3)

1-22: LGTM: License header and package declaration are correct.

The BUSL-1.1 license header is properly included, and the package is correctly declared as hex_test, following Go conventions for test files.


24-31: LGTM: Import statements are appropriate.

The import block includes all necessary packages, including standard library packages and the project's hex package. The use of require from the testify package is a good practice for concise and clear test assertions.


1-110: Overall, excellent test coverage and structure.

This new test file provides comprehensive coverage for the hex package's BigInt related functions. The tests are well-structured, use table-driven testing, and cover important scenarios including edge cases. The minor suggestions for improvement (adding a negative number test case and a very large number test case) would further enhance the robustness of the test suite.

Great job on writing thorough and maintainable tests!

mod/primitives/pkg/encoding/hex/bytes.go (1)

Line range hint 1-81: Overall, the changes improve input validation without disrupting the file structure

The modifications to DecodeFixedJSON enhance the input validation process while maintaining the overall structure and functionality of the file. The rest of the file, including other utility functions for hexadecimal encoding and decoding, remains unchanged and well-organized.

mod/primitives/pkg/math/u64_test.go (1)

63-66: Excellent addition of new test cases for improved coverage!

The new test cases for "Invalid JSON text", "Invalid quoted JSON text", and "Empty JSON text" significantly enhance the robustness of the TestU64_UnmarshalJSON function. These additions cover important edge cases that were previously untested, ensuring that the UnmarshalJSON method handles various error scenarios correctly.

  • The "Invalid JSON text" case checks the behavior when an empty string is provided.
  • The "Invalid quoted JSON text" case verifies the handling of an incomplete JSON string.
  • The "Empty JSON text" case tests the response to an empty quoted string.

These improvements will help catch potential issues related to JSON unmarshalling, making the code more reliable and maintainable.

mod/primitives/pkg/bytes/b_test.go (2)

Line range hint 139-917: Summary: Improved test coverage and naming clarity.

The changes in this file enhance the test suite by:

  1. Adding a new test function TestBytesUnmarshalJSONText to cover JSON unmarshalling scenarios.
  2. Renaming TestUnmarshalJSON to TestBytes48UnmarshalJSON for better specificity.

These modifications improve the overall quality and maintainability of the test suite.


917-917: LGTM! Verify no unintended changes in the function body.

The renaming of TestUnmarshalJSON to TestBytes48UnmarshalJSON improves clarity by specifying the exact type being tested. This change aligns well with the naming convention of other test functions in the file.

Please run the following script to verify that no unintended changes were made to the function body:

mod/primitives/pkg/encoding/hex/format.go (3)

23-26: Necessary imports added

The addition of the "strings" package is appropriate for the new string manipulation functions.


31-42: IsValidHex function enhances hex validation

The new IsValidHex function provides a robust and generic approach to hex string validation, effectively handling both []byte and string types. The use of type approximation ~[]byte | ~string aligns with Go's best practices for generics.


44-50: ValidateQuotedString function correctly validates quoted strings

The ValidateQuotedString function efficiently checks for properly quoted input and returns the unquoted content, enhancing input validation processes.

mod/primitives/pkg/encoding/hex/big_int.go Outdated Show resolved Hide resolved
mod/primitives/pkg/encoding/hex/big_int.go Show resolved Hide resolved
mod/primitives/pkg/encoding/hex/u64_test.go Outdated Show resolved Hide resolved
mod/primitives/pkg/encoding/hex/bytes.go Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between 8efb9e0 and db2584f.

📒 Files selected for processing (1)
  • mod/primitives/pkg/encoding/hex/u64_test.go (3 hunks)
🧰 Additional context used
🔇 Additional comments (1)
mod/primitives/pkg/encoding/hex/u64_test.go (1)

34-34: Test cases updated to use []byte for expected values

The test cases in TestMarshalText have been correctly updated to use []byte for the expected field, matching the change in the expected output type. This ensures that the tests properly validate the function's output.

Also applies to: 36-41

mod/primitives/pkg/encoding/hex/u64_test.go Show resolved Hide resolved
mod/primitives/pkg/encoding/hex/u64_test.go Outdated Show resolved Hide resolved
@abi87 abi87 changed the title chore(primitives): Droppedhex.String chore(primitives): Dropped hex.String Oct 8, 2024
}
return nil
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

q: in UnmarshalUint64Text, I wonder if we should use return strconv.ParseUint(string(raw), hexBase, 0) instead of the current implementation?

@abi87 abi87 enabled auto-merge (squash) October 10, 2024 19:37
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Outside diff range comments (1)
mod/primitives/pkg/encoding/hex/format.go (1)

Line range hint 61-70: Ensure consistent type constraints in formatAndValidateNumber

The type constraint for T in formatAndValidateNumber is []byte | string, whereas IsValidHex uses ~[]byte | ~string. For consistency and to support types derived from []byte or string, consider modifying the type constraint.

Update the function signature to:

-func formatAndValidateNumber[T []byte | string](input T) (T, error) {
+func formatAndValidateNumber[T ~[]byte | ~string](input T) (T, error) {

This change aligns the type constraints and ensures that both functions handle the same set of types.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between 551c489 and 2040195.

📒 Files selected for processing (4)
  • mod/primitives/pkg/encoding/hex/big_int.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/bytes.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/format.go (1 hunks)
  • mod/primitives/pkg/encoding/hex/u64.go (0 hunks)
💤 Files with no reviewable changes (1)
  • mod/primitives/pkg/encoding/hex/u64.go
🧰 Additional context used
🔇 Additional comments (6)
mod/primitives/pkg/encoding/hex/bytes.go (2)

77-81: Add comprehensive tests for ValidateQuotedString in bytes.go

While ValidateQuotedString is implemented in format.go and has tests in u64_test.go, there are no tests covering its usage in bytes.go. To ensure robust validation and prevent potential issues, please add relevant tests in bytes_test.go to cover all edge cases and usage scenarios within bytes.go.


77-81: Improved input validation, but verify compatibility and error handling

The changes to DecodeFixedJSON enhance input validation by introducing ValidateQuotedString. This likely provides more robust checking than the previous isQuotedString method. The error handling is also more specific, which could aid in debugging.

However, please consider the following points:

  1. Ensure that ValidateQuotedString is thoroughly tested and handles all edge cases.
  2. Verify that the change in error handling doesn't negatively impact any downstream error processing.
  3. Confirm that removing the explicit check for quoted strings doesn't break backwards compatibility with any existing clients.

To verify these points, run the following script:

✅ Verification successful

Validation of ValidateQuotedString implementation and usage confirmed

The ValidateQuotedString function is properly implemented and utilized across multiple modules. Comprehensive tests are in place to ensure its reliability. Additionally, the removal of isQuotedString does not appear to impact backward compatibility.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify ValidateQuotedString implementation, usage, and tests

# Test 1: Find the implementation of ValidateQuotedString
echo "Searching for ValidateQuotedString implementation:"
rg --type go "func ValidateQuotedString"

# Test 2: Check for other usages of ValidateQuotedString
echo "Searching for other usages of ValidateQuotedString:"
rg --type go "ValidateQuotedString\("

# Test 3: Look for any tests related to ValidateQuotedString
echo "Searching for tests related to ValidateQuotedString:"
rg --type go "Test.*ValidateQuotedString"

# Test 4: Check for potential backwards compatibility issues
echo "Searching for potential backwards compatibility issues:"
rg --type go "isQuotedString"

Length of output: 1353

mod/primitives/pkg/encoding/hex/big_int.go (2)

39-71: LGTM: ToBigInt function is well-implemented.

The ToBigInt function correctly decodes a hexadecimal string into a *big.Int with proper input validation and error handling.


73-81: LGTM: MustToBigInt function is correctly implemented.

The MustToBigInt function effectively handles conversion by panicking on invalid inputs, ensuring that callers receive a valid *big.Int or an immediate failure.

mod/primitives/pkg/encoding/hex/format.go (2)

23-26: Approved: Import statements correctly updated

The import of "strings" is necessary for the new functions and is appropriately added alongside "errors".


44-50: Approved: New function ValidateQuotedString added correctly

The ValidateQuotedString function correctly checks for quoted strings and returns the unquoted content, enhancing input validation.

mod/primitives/pkg/encoding/hex/format.go Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between 2040195 and 086767e.

📒 Files selected for processing (1)
  • mod/primitives/pkg/bytes/b_test.go (1 hunks)
🧰 Additional context used

mod/primitives/pkg/bytes/b_test.go Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

📜 Review details

Configuration used: CodeRabbit UI
Review profile: ASSERTIVE

📥 Commits

Files that changed from the base of the PR and between 086767e and 248742e.

📒 Files selected for processing (2)
  • mod/primitives/pkg/math/u64.go (1 hunks)
  • mod/primitives/pkg/math/u64_test.go (1 hunks)
🧰 Additional context used

mod/primitives/pkg/math/u64.go Show resolved Hide resolved
mod/primitives/pkg/math/u64_test.go Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant