githubtest

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package githubtest gives tests the GitHub forge's default repo and pull request URL rules, on https://github.com and without a client.

Index

Constants

This section is empty.

Variables

View Source
var Forge = newForge() //nolint:gochecknoglobals // test fixture

Forge is the GitHub forge on the default GITHUB_URL, https://github.com, without a client: its ParsePRURL and ParseRepoURL are the default repo and pull request URL rules.

Functions

This section is empty.

Types

type URLs

type URLs struct{}

URLs gives a forge fake the default repo and pull request URL rules: its ParseRepoURL and ParsePRURL are those of Forge. Embed it.

func (URLs) ParsePRURL

func (URLs) ParsePRURL(u string) (string, string, int, bool)

ParsePRURL is Forge's ParsePRURL.

func (URLs) ParseRepoURL

func (URLs) ParseRepoURL(u string) (string, string, bool)

ParseRepoURL is Forge's ParseRepoURL.

Jump to

Keyboard shortcuts

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