Skip to content
This repository has been archived by the owner on Oct 2, 2020. It is now read-only.

Commit

Permalink
Disable methods without a test
Browse files Browse the repository at this point in the history
  • Loading branch information
bored-engineer committed Aug 18, 2016
1 parent 00652c5 commit 8a4016b
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 19 deletions.
14 changes: 7 additions & 7 deletions legacy/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ package legacy

import (
"bytes"
"encoding/json"
// "encoding/json"
"fmt"
"net/url"
)
Expand Down Expand Up @@ -147,7 +147,7 @@ func (s *ReportService) Create(handle string, report *Report) (*Response, error)
}

// AddSummary assigns a group by ID to a report
func (s *ReportService) AddSummary(id uint64, summary *ReportSummary) (*Response, error) {
/*func (s *ReportService) AddSummary(id uint64, summary *ReportSummary) (*Response, error) {
user, resp, err := s.client.Session.GetCurrentUser()
if err != nil {
return resp, err
Expand Down Expand Up @@ -180,7 +180,7 @@ func (s *ReportService) AddSummary(id uint64, summary *ReportSummary) (*Response
}
return resp, err
}
}*/

// ReportBulkResponse is used as a response for multiple report methods
type ReportBulkResponse struct {
Expand Down Expand Up @@ -260,13 +260,13 @@ func (s *ReportService) Close(id uint64, message string, state string, opts *Rep
}

// Reopen reopens a report
func (s *ReportService) Reopen(id uint64, message string) (*ReportBulkResponse, *Response, error) {
/*func (s *ReportService) Reopen(id uint64, message string) (*ReportBulkResponse, *Response, error) {
body := url.Values{
"message": []string{message},
}
return s.bulk(id, "reopen", body)
}
}*/

// Comment comments on a report
func (s *ReportService) Comment(id uint64, message string, internal bool) (*ReportBulkResponse, *Response, error) {
Expand All @@ -283,7 +283,7 @@ func (s *ReportService) Comment(id uint64, message string, internal bool) (*Repo
}

// AssignUser assigns a user by ID to a report
func (s *ReportService) AssignUser(id uint64, message string, assignee uint64) (*ReportBulkResponse, *Response, error) {
/*func (s *ReportService) AssignUser(id uint64, message string, assignee uint64) (*ReportBulkResponse, *Response, error) {
body := url.Values{
"message": []string{message},
"substate": []string{"user"},
Expand All @@ -302,4 +302,4 @@ func (s *ReportService) AssignGroup(id uint64, message string, assignee uint64)
}
return s.bulk(id, "assign-to", body)
}
}*/
4 changes: 2 additions & 2 deletions legacy/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s *SessionService) GetCurrentUser() (*SessionUser, *Response, error) {
}

// GetTeams returns the current user's teams
func (s *SessionService) GetTeams() ([]Team, *Response, error) {
/*func (s *SessionService) GetTeams() ([]Team, *Response, error) {
req, err := s.client.NewRequest("GET", "teams", nil)
if err != nil {
return nil, nil, err
Expand All @@ -73,7 +73,7 @@ func (s *SessionService) GetTeams() ([]Team, *Response, error) {
}
return teams, resp, err
}
}*/

// Acquire attempts to authenticate with the provided credentials
func (s *SessionService) Acquire(email string, password string) (*Response, error) {
Expand Down
14 changes: 7 additions & 7 deletions legacy/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package legacy

import (
"fmt"
// "fmt"
)

// TeamService handles communication with the report related methods of the H1 API.
Expand Down Expand Up @@ -76,7 +76,7 @@ type Team struct {
}

// GetByHandle a team by handle
func (s *TeamService) Get(handle string) (*Team, *Response, error) {
/*func (s *TeamService) Get(handle string) (*Team, *Response, error) {
req, err := s.client.NewRequest("GET", handle, nil)
if err != nil {
return nil, nil, err
Expand All @@ -91,7 +91,7 @@ func (s *TeamService) Get(handle string) (*Team, *Response, error) {
}
return team, resp, err
}
}*/

// TeamProfileMetrics represents a H1 team's profile metrics
type TeamProfileMetrics struct {
Expand All @@ -107,7 +107,7 @@ type TeamProfileMetrics struct {
}

// GetProfileMetrics returns the profile metrics of a team by handle
func (s *TeamService) GetProfileMetrics(handle string) (*TeamProfileMetrics, *Response, error) {
/*func (s *TeamService) GetProfileMetrics(handle string) (*TeamProfileMetrics, *Response, error) {
req, err := s.client.NewRequest("GET", fmt.Sprintf("%s/reporters", handle), nil)
if err != nil {
return nil, nil, err
Expand Down Expand Up @@ -140,7 +140,7 @@ func (s *TeamService) ListReporters(handle string) ([]User, *Response, error) {
}
return users, resp, err
}
}*/

// CommonResponse represents a common ersponse object
type CommonResponse struct {
Expand All @@ -149,7 +149,7 @@ type CommonResponse struct {
Message *string `json:"message"`
}

// ListCommonResponses returns the common responses for a team by handle
/*// ListCommonResponses returns the common responses for a team by handle
func (s *TeamService) ListCommonResponses(handle string) ([]CommonResponse, *Response, error) {
req, err := s.client.NewRequest("GET", fmt.Sprintf("%s/common_responses.json", handle), nil)
if err != nil {
Expand All @@ -165,4 +165,4 @@ func (s *TeamService) ListCommonResponses(handle string) ([]CommonResponse, *Res
}
return commonResponses, resp, err
}
}*/
6 changes: 3 additions & 3 deletions legacy/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
package legacy

import (
"fmt"
// "fmt"
)

// UserService handles communication with the report related methods of the H1 API.
Expand Down Expand Up @@ -55,7 +55,7 @@ type User struct {
TeamContext *UserTeamContext `json:"team_context"`
}

// Get looks up a user by username
/*// Get looks up a user by username
func (s *UserService) Get(username string) (*User, *Response, error) {
req, err := s.client.NewRequest("GET", username, nil)
if err != nil {
Expand Down Expand Up @@ -137,4 +137,4 @@ func (s *UserService) ListBadges(username string) ([]Badge, *Response, error) {
}
return wrapper.Items, resp, err
}
}*/

0 comments on commit 8a4016b

Please sign in to comment.