test

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllBooks note.Books
View Source
var AllTags note.Tags

Functions

func BookSliceEq

func BookSliceEq(a, b note.Books) bool

func CheckBooks

func CheckBooks(t *testing.T, bks1, bks2 note.Books)

func CheckNotes

func CheckNotes(t *testing.T, notes1, notes2 note.Notes)

func CheckTags

func CheckTags(t *testing.T, tag1, tag2 note.Tags)

func GetTestNotes

func GetTestNotes() note.Notes

func GetTestNotesCust

func GetTestNotesCust(s string) note.Notes

func NoteSliceEq

func NoteSliceEq(a, b note.Notes) bool

func StringSliceEq

func StringSliceEq(a, b []string) bool

func TagSliceEq

func TagSliceEq(a, b note.Tags) bool

Types

type JsonNote

type JsonNote struct {
	ID       int64     `json:"id"`
	Created  time.Time `json:"created"`
	Modified time.Time `json:"modified"`
	Type     string    `json:"type"`
	Title    string    `json:"title"`
	Body     string    `json:"body"`
	Book     string    `json:"book"`
	Tags     []string  `json:"tags"`
}

Jump to

Keyboard shortcuts

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