testfixtures

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package testfixtures provides types used for testing the tygorgen package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateUserRequest

type CreateUserRequest struct {
	Username string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

CreateUserRequest is a test fixture for generator tests.

type ListPostsParams

type ListPostsParams struct {
	AuthorID  *int64 `json:"author_id" schema:"author_id"`
	Published *bool  `json:"published" schema:"published"`
	Limit     int32  `json:"limit" schema:"limit"`
	Offset    int32  `json:"offset" schema:"offset"`
}

ListPostsParams is a test fixture for generator tests.

type Post

type Post struct {
	ID        int64  `json:"id"`
	AuthorID  int64  `json:"author_id"`
	Title     string `json:"title"`
	Content   string `json:"content"`
	Published bool   `json:"published"`
}

Post is a test fixture for generator tests.

type User

type User struct {
	ID       int64  `json:"id"`
	Username string `json:"username"`
	Email    string `json:"email"`
}

User is a test fixture for generator tests.

Jump to

Keyboard shortcuts

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