Add tests, edit error messages

Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
Vartan Benohanian
2020-08-03 00:00:29 -04:00
parent c3b2ab00c2
commit 8259f16f19
11 changed files with 726 additions and 22 deletions
+1 -1
View File
@@ -436,7 +436,7 @@ func (s *PostService) DisableContestMode(ctx context.Context, id string) (*Respo
// LoadMoreComments retrieves more comments that were left out when initially fetching the post.
func (s *PostService) LoadMoreComments(ctx context.Context, pc *PostAndComments) (*Response, error) {
if pc == nil {
return nil, errors.New("pc: must not be nil")
return nil, errors.New("pc: cannot be nil")
}
if !pc.hasMore() {