(path, serverSHAForRepo string, data interface{})
| 56 | } |
| 57 | |
| 58 | func repositoryContent(path, serverSHAForRepo string, data interface{}) *github.RepositoryContent { |
| 59 | return &github.RepositoryContent{ |
| 60 | Type: github.String("file"), |
| 61 | Encoding: github.String("base64"), |
| 62 | Size: github.Int(len(base64Encoded(toJSON(data)))), |
| 63 | Name: github.String(filepath.Base(path)), |
| 64 | Path: github.String(path), |
| 65 | Content: github.String(base64Encoded(toJSON(data))), |
| 66 | SHA: github.String(serverSHAForRepo), |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func withGitHubServer(t *testing.T, specimen Storage, f func(*github.Client)) { |
| 71 | // test server |
no test coverage detected