Skip to content

internEntry's cross-kind collision error names the unexported structs #808

Closed

Description

@David-Noble-at-work

Found sealing file (#645).

internEntry reports a cross-kind collision with %T of the ledger entry and the candidate:

file: catalog entry for "file:contested" is *file.regular, want *file.directory

Before sealing those read *file.Regular and *file.Directory. The struct names are an implementation detail the
error now leaks; the exported kind names are what a reader knows. TestDiscover_CrossKindCollisionErrors pins the
current text (file.regular, file.directory) so the change is visible when it lands.

Acceptance

  • the collision error names the kinds by their exported interface names
  • TestDiscover_CrossKindCollisionErrors asserts the exported names

Placement: #649's sweep, which is in the same file.

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions