demo

package
v0.0.0-...-9f3510a Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package demo provides mock data for UI testing without a live Lemmy connection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MockComments

func MockComments() []api.CommentView

MockComments returns a slice of mock comments for the first post. Comments are structured to demonstrate threading at various depths.

func MockPosts

func MockPosts() []api.PostView

MockPosts returns a slice of mock posts for UI testing. The posts cover various scenarios: different scores, communities, title lengths, content types, badges, and post statuses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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