Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/diff-utils"

Index

Functions

diff

  • diff(__namedParameters: object): void
  • Diffs current log (.log) and etalon log (.et) files. Takes into account presence of .edif file. If diff is not empty it is placed to (*.dif) file.

    NOTE: this function requires external diff utility. Both logs must be ended by newline, otherwise there will be 'No newline at end of file' messages in resulting diff.

    Parameters

    • __namedParameters: object

    Returns void

getDiff

  • getDiff(__namedParameters: object): string
  • Returns result of running external dif utility, i.e. stdout + stderr. NOTE: this function requires external dif utility. Both files must be ended by newline, otherwise there will be 'No newline at end of file' messages in resulting dif.

    Parameters

    • __namedParameters: object

    Returns string

getStructuredPatch

  • getStructuredPatch(__namedParameters: object): ParsedDiff
  • Parameters

    • __namedParameters: object

    Returns ParsedDiff