Skip to content

[CodeCov] string encoder adapter coverage only 48% #44

@e-strauss

Description

@e-strauss

Coverage for stratum/adapters/string_encoder.py sits at 48% (156 stmts, 78 missed). The gaps concentrate in three areas: the entire transform() method (lines 159-217) is never exercised, the tfidf vectorizer branches are untested (only hashing is parametrized), and the fallback / validation paths — _rust_supported_subset rejections, sklearn fallback on unsupported config, exception handlers, and the padding branch — are not hit.

These are low-effort wins: parametrize vectorizer over {hashing, tfidf}, add a transform round-trip after fit_transform, call _rust_supported_subset directly with unsupported inputs, and toggle rust_backend=False once to cover the sklearn fallback path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions