bugscpp.processor.core.data.Worktree

class Worktree(project_name: str, index: int, buggy: bool = False, workspace: str = '/home/runner/work/bugscpp/bugscpp/docs')[source]

Bases: object

Dataclass to manage host and container directory structure.

__init__(project_name: str, index: int, buggy: bool = False, workspace: str = '/home/runner/work/bugscpp/bugscpp/docs') None

Methods

__init__(project_name, index[, buggy, workspace])

Attributes

base

Return base path which will be used to test and build defect taxonomies

buggy

True if the project is configured as buggy, otherwise False.

container

Return path to which is mounted inside docker

host

Return path from which is mounted

suffix

Return suffix path which is appended to base path

workspace

The workspace path string.

project_name

The name of the defect taxonomy.

index

The index number of taxonomy.

property base: pathlib.Path

Return base path which will be used to test and build defect taxonomies

buggy: bool = False

True if the project is configured as buggy, otherwise False.

property container: pathlib.PurePosixPath

Return path to which is mounted inside docker

property host: pathlib.Path

Return path from which is mounted

index: int

The index number of taxonomy.

project_name: str

The name of the defect taxonomy.

property suffix: pathlib.Path

Return suffix path which is appended to base path

workspace: str = '/home/runner/work/bugscpp/bugscpp/docs'

The workspace path string.