All files / rusted-chromium/commons loggerTexts.ts

81.81% Statements 9/11
100% Branches 0/0
50% Functions 2/4
81.81% Lines 9/11

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44    4x           4x   11x       4x   1x       4x           4x           4x           4x          
import { LoggerConfig, StringLoggerConfig, TextFunction } from '../interfaces/interfaces'
 
export const LOAD_CONFIG: StringLoggerConfig = {
    start: 'Downloading local storage file',
    success: 'localstore.json file downloaded successfully!',
    fail: 'Error downloading localstore.json',
}
 
export const DOWNLOAD_ZIP: LoggerConfig<TextFunction, string> = {
    start: 'Downloading binary...',
    success: downloadPath => `Successfully downloaded to "${downloadPath}.zip"`,
    fail: 'Failed to download binary',
}
 
export const EXTRACT_ZIP: LoggerConfig<TextFunction, TextFunction> = {
    start: 'Extracting binary...',
    success: downloadPath => `Successfully extracted to "${downloadPath}"`,
    fail: error => `Failed to extract binary ${error}`,
}
 
export const DELETE_ZIP: StringLoggerConfig = {
    start: 'Deleting zip...',
    success: 'Successfully deleted zip file',
    fail: 'Failed to delete zip file',
}
 
export const READ_CONFIG: LoggerConfig<string, TextFunction> = {
    start: 'Reading local storage file from filesystem',
    success: 'Successfully loaded localstore.json from filesystem',
    fail: reason => `Error loading localstore.json from filesystem: ${reason}`,
}
 
export const RESOLVE_VERSION: StringLoggerConfig = {
    start: 'Resolving version to branch position...',
    success: 'Version resolved!',
    fail: 'Error resolving version!',
}
 
export const SEARCH_BINARY: StringLoggerConfig = {
    start: 'Searching for binary...',
    success: 'Binary found.',
    fail: 'No binary found!',
}