All files / rusted-chromium/commons constants.ts

100% Statements 7/7
100% Branches 0/0
100% Functions 0/0
100% Lines 7/7

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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90    30x   30x   30x                                         30x                       30x                                   30x                                         30x                      
import type { IConfigOptions } from '../interfaces/config.interfaces'
import type { IChromeFullConfig, IChromeSingleConfig } from '../interfaces/interfaces'
import { ComparableVersion } from './ComparableVersion'
 
export const LOCAL_STORE_FILE = 'localstore.json'
 
export const ALL_FALSE_FULL_CONFIG: IChromeFullConfig = {
    arch: 'x64',
    autoUnzip: false,
    debug: false,
    download: false,
    downloadFolder: null,
    hideNegativeHits: false,
    interactive: false,
    inverse: false,
    list: false,
    max: new ComparableVersion(Infinity, 0, 0, 0),
    min: new ComparableVersion(-Infinity, 0, 0, 0),
    onFail: 'nothing',
    onlyNewestMajor: false,
    os: 'linux',
    quiet: false,
    results: Infinity,
    single: null,
    store: false,
}
 
export const ALL_FALSE_SINGLE_CONFIG: IChromeSingleConfig = {
    arch: 'x64',
    autoUnzip: false,
    debug: false,
    download: false,
    downloadFolder: null,
    os: 'linux',
    quiet: false,
    single: new ComparableVersion(0, 0, 0, 0),
    store: false,
}
 
export const DEFAULT_CONFIG_OPTIONS: IConfigOptions = {
    min: '0',
    max: '10000',
 
    debug: false,
    decreaseOnFail: false,
    download: true,
    hideNegativeHits: false,
    increaseOnFail: false,
    inverse: false,
    list: false,
    nonInteractive: false,
    onlyNewestMajor: false,
    quiet: false,
    store: true,
    unzip: false,
}
 
export const DEFAULT_FULL_CONFIG: IChromeFullConfig = {
    arch: 'x64',
    autoUnzip: false,
    debug: false,
    download: true,
    downloadFolder: null,
    hideNegativeHits: false,
    interactive: true,
    inverse: false,
    list: false,
    max: new ComparableVersion(10000, 0, 0, 0),
    min: new ComparableVersion(0, 0, 0, 0),
    onFail: 'nothing',
    onlyNewestMajor: false,
    os: 'linux',
    quiet: false,
    results: 10,
    single: null,
    store: true,
}
 
export const DEFAULT_SINGLE_CONFIG: IChromeSingleConfig = {
    arch: 'x64',
    os: 'linux',
    autoUnzip: false,
    store: true,
    download: true,
    downloadFolder: null,
    single: new ComparableVersion(10, 0, 0, 0),
    quiet: false,
    debug: false,
}