test

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package test contains useful functions used across tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTMLTestFilePath

func HTMLTestFilePath(t *testing.T, filename string) string

HTMLTestFilePath returns the absolute file path of a file in "html" folder in test/testdata.

func MarkdownTestFilePath

func MarkdownTestFilePath(t *testing.T, filename string) string

MarkdownTestFilePath returns the absolute file path of a file in "markdown" folder in test/testdata.

func OfficeTestFilePath

func OfficeTestFilePath(t *testing.T, filename string) string

OfficeTestFilePath returns the absolute file path of a file in "office" folder in test/testdata.

func PDFTestFilePath

func PDFTestFilePath(t *testing.T, filename string) string

PDFTestFilePath returns the absolute file path of a file in "pdf" folder in test/testdata.

func Rand

func Rand() (string, error)

Rand returns a random string.

func URLTestFilePath

func URLTestFilePath(t *testing.T, filename string) string

URLTestFilePath returns the absolute file path of a file in "url" folder in test/testdata.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL