MCPcopy Index your code
hub / github.com/google/go-github / TestRepositoryContent_String

Function TestRepositoryContent_String

github/github-stringify_test.go:2076–2097  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2074}
2075
2076func TestRepositoryContent_String(t *testing.T) {
2077 t.Parallel()
2078 v := RepositoryContent{
2079 Type: Ptr(""),
2080 Target: Ptr(""),
2081 Encoding: Ptr(""),
2082 Size: Ptr(0),
2083 Name: Ptr(""),
2084 Path: Ptr(""),
2085 Content: Ptr(""),
2086 SHA: Ptr(""),
2087 URL: Ptr(""),
2088 GitURL: Ptr(""),
2089 HTMLURL: Ptr(""),
2090 DownloadURL: Ptr(""),
2091 SubmoduleGitURL: Ptr(""),
2092 }
2093 want := `github.RepositoryContent{Type:"", Target:"", Encoding:"", Size:0, Name:"", Path:"", Content:"", SHA:"", URL:"", GitURL:"", HTMLURL:"", DownloadURL:"", SubmoduleGitURL:""}`
2094 if got := v.String(); got != want {
2095 t.Errorf("RepositoryContent.String = %v, want %v", got, want)
2096 }
2097}
2098
2099func TestRepositoryLicense_String(t *testing.T) {
2100 t.Parallel()

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
PtrFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…