stringOrNil converts a potentially null string pointer to string. For non-nil input pointer, the returned string is enclosed in double-quotes.
(s *string)
| 81 | // stringOrNil converts a potentially null string pointer to string. |
| 82 | // For non-nil input pointer, the returned string is enclosed in double-quotes. |
| 83 | func stringOrNil(s *string) string { |
| 84 | if s == nil { |
| 85 | return "<nil>" |
| 86 | } |
| 87 | return fmt.Sprintf("%q", *s) |
| 88 | } |
| 89 | |
| 90 | func TestRepositoriesService_GetReadme(t *testing.T) { |
| 91 | t.Parallel() |
no outgoing calls
no test coverage detected
searching dependent graphs…