xload

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package xload contains testing helpers but for initialization.

Because of that, that type of funcs cannot contain *t testing.T arg on any function, so the errs are notified by log.Fatal (due every bad initialization causes bad processing).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeJsonnet

func DecodeJsonnet(name string, pointer interface{})

DecodeJsonnet will load the specified fixture and decode onto the given pointer It'll add the boilerplate of testdata/%s.jsonnet

func ReadJsonnet

func ReadJsonnet(name string) []byte

ReadJsonnet reads the jsonnet given from the specified file It'll add the boilerplate of testdata/%s.jsonnet

Types

This section is empty.

Jump to

Keyboard shortcuts

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