Skip to content

Test gap: no coverage for resolvePassphrase() (src/batch-tx.ts) #462

Description

@Jaydbrown

resolvePassphrase() in src/batch-tx.ts — which resolves a BatchTransactionContext's effective network passphrase from either an explicit networkPassphrase or a named network, and throws BatchBuildError for an unknown network — has no dedicated test under src/tests/. It's a small pure function with several distinct branches (explicit passphrase present/blank, named network known/unknown, neither provided) that would be cheap to cover directly rather than relying on it being exercised incidentally through buildBatchTransactionsSync/buildBatchTransactions tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions