f3

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KindToFixturePath = map[generic.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.KindAssets:         "/forge/users/10111/projects/74823/releases/123/assets",
	f3_tree.KindAsset:          "/forge/users/10111/projects/74823/releases/123/assets/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 ComplianceTests

func ComplianceTests(t *testing.T, tree f3_tree.TreeInterface, kindToFixturePath map[generic.Kind]string, exceptions []generic.Kind)

func ForgeCompliance

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

func GeneratorModify

func GeneratorModify(t *testing.T, f f3.Interface, parent generic.Path) f3.Interface

func GeneratorModifyComment

func GeneratorModifyComment(comment *f3.Comment, parent generic.Path) *f3.Comment

func GeneratorModifyIssue

func GeneratorModifyIssue(issue *f3.Issue, parent generic.Path) *f3.Issue

func GeneratorModifyLabel

func GeneratorModifyLabel(label *f3.Label, parent generic.Path) *f3.Label

func GeneratorModifyMilestone

func GeneratorModifyMilestone(milestone *f3.Milestone, parent generic.Path) *f3.Milestone

func GeneratorModifyOrganization

func GeneratorModifyOrganization(organization *f3.Organization) *f3.Organization

func GeneratorModifyProject

func GeneratorModifyProject(project *f3.Project, parent generic.Path) *f3.Project

func GeneratorModifyPullRequest

func GeneratorModifyPullRequest(t *testing.T, pullRequest *f3.PullRequest, parent generic.Path) *f3.PullRequest

func GeneratorModifyRelease

func GeneratorModifyRelease(t *testing.T, release *f3.Release, parent generic.Path) *f3.Release

func GeneratorModifyReleaseAsset

func GeneratorModifyReleaseAsset(asset *f3.ReleaseAsset, parent generic.Path) *f3.ReleaseAsset

func GeneratorModifyReviewComment

func GeneratorModifyReviewComment(t *testing.T, comment *f3.ReviewComment, parent generic.Path) *f3.ReviewComment

func GeneratorModifyTopic

func GeneratorModifyTopic(topic *f3.Topic, parent generic.Path) *f3.Topic

func GeneratorModifyUser

func GeneratorModifyUser(user *f3.User) *f3.User

func GeneratorSetID

func GeneratorSetID(f f3.Interface, id string) f3.Interface

func GeneratorSetRandom

func GeneratorSetRandom(t *testing.T, f f3.Interface, parent generic.Path) f3.Interface

func GeneratorSetRandomComment

func GeneratorSetRandomComment(comment *f3.Comment, parent generic.Path) *f3.Comment

func GeneratorSetRandomID

func GeneratorSetRandomID(f f3.Interface, parent generic.Path) f3.Interface

func GeneratorSetRandomIssue

func GeneratorSetRandomIssue(issue *f3.Issue, parent generic.Path) *f3.Issue

func GeneratorSetRandomLabel

func GeneratorSetRandomLabel(label *f3.Label, parent generic.Path) *f3.Label

func GeneratorSetRandomMilestone

func GeneratorSetRandomMilestone(milestone *f3.Milestone, parent generic.Path) *f3.Milestone

func GeneratorSetRandomOrganization

func GeneratorSetRandomOrganization(organization *f3.Organization) *f3.Organization

func GeneratorSetRandomProject

func GeneratorSetRandomProject(project *f3.Project, parent generic.Path) *f3.Project

func GeneratorSetRandomPullRequest

func GeneratorSetRandomPullRequest(t *testing.T, pullRequest *f3.PullRequest, parent generic.Path) *f3.PullRequest

func GeneratorSetRandomReaction

func GeneratorSetRandomReaction(reaction *f3.Reaction, parent generic.Path) *f3.Reaction

func GeneratorSetRandomRelease

func GeneratorSetRandomRelease(t *testing.T, release *f3.Release, parent generic.Path) *f3.Release

func GeneratorSetRandomReleaseAsset

func GeneratorSetRandomReleaseAsset(asset *f3.ReleaseAsset, parent generic.Path) *f3.ReleaseAsset

func GeneratorSetRandomTopic

func GeneratorSetRandomTopic(topic *f3.Topic, parent generic.Path) *f3.Topic

func GeneratorSetRandomUser

func GeneratorSetRandomUser(user *f3.User) *f3.User

func GeneratorSetReview

func GeneratorSetReview(t *testing.T, review *f3.Review, parent generic.Path) *f3.Review

func GeneratorSetReviewComment

func GeneratorSetReviewComment(t *testing.T, comment *f3.ReviewComment, parent generic.Path) *f3.ReviewComment

func SetKindWithFixturePath

func SetKindWithFixturePath() []generic.Kind

func TreeBuild

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

func TreeBuildPartial

func TreeBuildPartial(t *testing.T, exceptions []generic.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, logger logger.Interface) *Creator

func (*Creator) Generate

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

func (*Creator) GenerateAsset

func (f *Creator) GenerateAsset(parent generic.Path) *f3.ReleaseAsset

func (*Creator) GenerateComment

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

func (*Creator) GenerateForge

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

func (*Creator) GenerateForkedProject

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

func (*Creator) GenerateIssue

func (f *Creator) GenerateIssue(parent generic.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 generic.Path) *f3.PullRequest

func (*Creator) GenerateReaction

func (f *Creator) GenerateReaction(parent generic.Path) *f3.Reaction

func (*Creator) GenerateRelease

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

func (*Creator) GenerateRepository

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

func (*Creator) GenerateReview

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

func (*Creator) GenerateReviewComment

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

func (*Creator) GenerateTopic

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

func (*Creator) GenerateUser

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

func (*Creator) GetDirectory

func (f *Creator) GetDirectory() string

type TestingT

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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