LocalFileComparator constructor

LocalFileComparator(Uri testFile, { Style pathStyle })

Creates a new LocalFileComparator for the specified testFile.

Golden file keys will be interpreted as file paths relative to the directory in which testFile resides.

The testFile URL must represent a file.

Implementation

LocalFileComparator(Uri testFile, {path.Style pathStyle})
    : basedir = _getBasedir(testFile, pathStyle),
      _path = _getPath(pathStyle);