f3

package
v3.11.10 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindToFixturePath = map[kind.Kind]string{
	f3_tree.KindTopics:         "/forge/topics",
	f3_tree.KindTopic:          "/forge/topics/14411441",
	f3_tree.KindUsers:          "/forge/users",
	f3_tree.KindUser:           "/forge/users/10111",
	f3_tree.KindProjects:       "/forge/users/10111/projects",
	f3_tree.KindProject:        "/forge/users/10111/projects/74823",
	f3_tree.KindLabels:         "/forge/users/10111/projects/74823/labels",
	f3_tree.KindLabel:          "/forge/users/10111/projects/74823/labels/7777",
	f3_tree.KindIssues:         "/forge/users/10111/projects/74823/issues",
	f3_tree.KindIssue:          "/forge/users/10111/projects/74823/issues/1234567",
	f3_tree.KindPullRequests:   "/forge/users/10111/projects/74823/pull_requests",
	f3_tree.KindPullRequest:    "/forge/users/10111/projects/74823/pull_requests/2222",
	f3_tree.KindReviews:        "/forge/users/10111/projects/74823/pull_requests/2222/reviews",
	f3_tree.KindReview:         "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593",
	f3_tree.KindReviewComments: "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593/reviewcomments",
	f3_tree.KindReviewComment:  "/forge/users/10111/projects/74823/pull_requests/2222/reviews/4593/reviewcomments/9876543",
	f3_tree.KindMilestones:     "/forge/users/10111/projects/74823/milestones",
	f3_tree.KindMilestone:      "/forge/users/10111/projects/74823/milestones/7888",
	f3_tree.KindReactions:      "/forge/users/10111/projects/74823/issues/1234567/reactions",
	f3_tree.KindReaction:       "/forge/users/10111/projects/74823/issues/1234567/reactions/1212",
	f3_tree.KindComments:       "/forge/users/10111/projects/74823/issues/1234567/comments",
	f3_tree.KindComment:        "/forge/users/10111/projects/74823/issues/1234567/comments/1111999",
	f3_tree.KindRepositories:   "/forge/users/10111/projects/74823/repositories",
	f3_tree.KindRepository:     "/forge/users/10111/projects/74823/repositories/vcs",
	f3_tree.KindReleases:       "/forge/users/10111/projects/74823/releases",
	f3_tree.KindRelease:        "/forge/users/10111/projects/74823/releases/123",
	f3_tree.KindAttachments:    "/forge/users/10111/projects/74823/releases/123/attachments",
	f3_tree.KindAttachment:     "/forge/users/10111/projects/74823/releases/123/attachments/585858",
	f3_tree.KindOrganizations:  "/forge/organizations",
	f3_tree.KindOrganization:   "/forge/organizations/3330001",
}
View Source
var KindWithFixturePath = SetKindWithFixturePath()
View Source
var RootUser *f3.User = &f3.User{
	UserName: "root",
}

Functions

func Compliance added in v3.10.0

func Compliance(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, p string, kind kind.Kind)

func ComplianceForkedPullRequest added in v3.10.0

func ComplianceForkedPullRequest(t *testing.T, tree f3_tree.TreeInterface, remap remapper, pullRequest *f3.PullRequest, parent path.Path) *f3.PullRequest

func ComplianceKindTests added in v3.7.0

func ComplianceKindTests(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, kindToForgePath map[kind.Kind]string, exceptions []kind.Kind)

func ComplianceNameTests added in v3.10.0

func ComplianceNameTests(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, remap remapper, kindToForgePath map[kind.Kind]string, exceptions []string)

func ComplianceNoBranchPullRequest added in v3.11.0

func ComplianceNoBranchPullRequest(t *testing.T, tree f3_tree.TreeInterface, remap remapper, pullRequest *f3.PullRequest, parent path.Path) *f3.PullRequest

func ComplianceReviewRequest added in v3.11.4

func ComplianceReviewRequest(t *testing.T, creator *Creator, tree f3_tree.TreeInterface, remap remapper, review *f3.Review, parent path.Path) *f3.Review

func ComplianceUserAdmin added in v3.11.4

func ComplianceUserAdmin(t *testing.T, creator *Creator) *f3.User

func ForgeCompliance

func ForgeCompliance(t *testing.T, name string)

func SetKindWithFixturePath

func SetKindWithFixturePath() []kind.Kind

func TreeBuild

func TreeBuild(t *testing.T, creator *Creator, opts options.Interface, tree generic.TreeInterface)

func TreeBuildPartial

func TreeBuildPartial(t *testing.T, creator *Creator, exceptions []kind.Kind, opts options.Interface, tree generic.TreeInterface)

func TreeDelete

func TreeDelete(t *testing.T, nonTestUsers []string, options options.Interface, tree generic.TreeInterface)

Types

type Creator

type Creator struct {
	// contains filtered or unexported fields
}

func NewCreator

func NewCreator(t TestingT, name string, tree generic.TreeInterface) *Creator

func (*Creator) Generate

func (f *Creator) Generate(k kind.Kind, parent path.Path) f3.Interface

func (*Creator) GenerateAttachment added in v3.11.0

func (f *Creator) GenerateAttachment(parent path.Path) *f3.Attachment

func (*Creator) GenerateComment

func (f *Creator) GenerateComment(parent path.Path) *f3.Comment

func (*Creator) GenerateForge

func (f *Creator) GenerateForge() *f3.Forge

func (*Creator) GenerateForkedProject

func (f *Creator) GenerateForkedProject(parent path.Path, forked string) *f3.Project

func (*Creator) GenerateIssue

func (f *Creator) GenerateIssue(parent path.Path) *f3.Issue

func (*Creator) GenerateLabel

func (f *Creator) GenerateLabel() *f3.Label

func (*Creator) GenerateMilestone

func (f *Creator) GenerateMilestone() *f3.Milestone

func (*Creator) GenerateOrganization

func (f *Creator) GenerateOrganization() *f3.Organization

func (*Creator) GenerateProject

func (f *Creator) GenerateProject() *f3.Project

func (*Creator) GeneratePullRequest

func (f *Creator) GeneratePullRequest(parent path.Path) *f3.PullRequest

func (*Creator) GenerateReaction

func (f *Creator) GenerateReaction(parent path.Path, reaction string) *f3.Reaction

func (*Creator) GenerateRelease

func (f *Creator) GenerateRelease(parent path.Path) *f3.Release

func (*Creator) GenerateRepository

func (f *Creator) GenerateRepository(name string) *f3.Repository

func (*Creator) GenerateReview

func (f *Creator) GenerateReview(parent path.Path) *f3.Review

func (*Creator) GenerateReviewComment

func (f *Creator) GenerateReviewComment(parent path.Path) *f3.ReviewComment

func (*Creator) GenerateTopic

func (f *Creator) GenerateTopic() *f3.Topic

func (*Creator) GenerateUser

func (f *Creator) GenerateUser() *f3.User

type ModificatorFunc added in v3.10.0

type ModificatorFunc func(t *testing.T, f f3.Interface, parent path.Path) []f3.Interface

type TestingT

type TestingT interface {
	assert.TestingT
	TempDir() string
	Skip(args ...any)
	FailNow()
	Context() context.Context
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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