test

package
v0.0.0-...-2baeb36 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Feed = &feeds.Feed{
	Title:   "Test feed",
	Link:    &feeds.Link{Href: "localhost"},
	Created: time.Now().UTC().Truncate(time.Minute),
	Author: &feeds.Author{
		Name:  "test",
		Email: "test@localhost",
	},
	Image: &feeds.Image{
		Link:  "localhost",
		Url:   "test",
		Title: "test",
	},
	Items: []*feeds.Item{{
		Title:       "test",
		Link:        &feeds.Link{Href: "http://localhost/test-page"},
		Id:          "http://localhost/test-page",
		Description: "test",
		Author: &feeds.Author{
			Name:  "test",
			Email: "test@localhost",
		},
		Created: time.Now().UTC().Truncate(time.Minute),
		Updated: time.Now().UTC().Truncate(time.Minute),
		Enclosure: &feeds.Enclosure{
			Url:    "test",
			Length: "test",
			Type:   "test",
		},
	}},
}

Feed with test data

Functions

func Diff

func Diff(a, b interface{}) string

Diff in test structs

func RunTestHTTPServer

func RunTestHTTPServer(addr string)

RunTestHTTPServer with test data

Types

This section is empty.

Jump to

Keyboard shortcuts

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