• Test function. Generates an identifier value for postgresql out of main value and a filepath of a test file.

    Used to generate test-specific databases.

    value is expected to be a valid PostgreSQL identifier.

    Resulting value is truncated to maximum of 63 characters, dots and dashes are replaced with underscores and .db.spec.* ending is removed from an attached filename postfix.

    Result example: value_t_shorthash_test_file_name_without_extension

    Parameters

    • Optional value: string
    • Optional testFilePath: string
    • testIdentifier: string = 't'

    Returns string

Generated using TypeDoc