Skip to content

testing: add missing tests for core.py exceptions #4793

@superlopuh

Description

@superlopuh

We're missing some test coverage for IR manipulation exceptions, it would be great to add them for:

  • Cannot add region that is already attached on an operation.
  • Erased SSA value is used by the operation
  • Cannot detach a toplevel operation
  • Unexpected index
  • Attempting to delete an argument of the wrong block
  • Operation is not a child of the block.
  • Cannot detach operation from a different block.
  • Parent pointer of operation does not refer to containing region
  • Parent pointer of block does not refer to containing region

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions