testutil

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package testutil provides various utils to test generated code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCodeIsSame

func AssertCodeIsSame(t *testing.T, expected string, actual string)

AssertCodeIsSame asserts if two code snippets are equivalent

func CreateGoFile

func CreateGoFile(srcText string) *os.File

CreateGoFile creates temp file with given go code

Types

This section is empty.

Jump to

Keyboard shortcuts

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