Skip to content

Class: MockFileStatus ​

Mock of the X-Ray engine FS file status.

Implements ​

  • FileStatus

Constructors ​

Constructor ​

ts
new MockFileStatus(exists?: boolean, external?: boolean): MockFileStatus;

Parameters ​

ParameterType
exists?boolean
external?boolean

Returns ​

MockFileStatus

Methods ​

create() ​

ts
static create(exists?: boolean, external?: boolean): MockFileStatus;

Parameters ​

ParameterType
exists?boolean
external?boolean

Returns ​

MockFileStatus


mock() ​

ts
static mock(exists?: boolean, external?: boolean): FileStatus;

Parameters ​

ParameterType
exists?boolean
external?boolean

Returns ​

FileStatus

Properties ​

Exists ​

ts
readonly Exists: boolean;

Whether the file exists.

Implementation of ​

ts
FileStatus.Exists

External ​

ts
readonly External: boolean;

Whether the match came from the external filesystem.

Implementation of ​

ts
FileStatus.External