Showing 11 of 38 total issues
Function TestConnectSubscriptions
has 125 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestConnectSubscriptions(t *testing.T) {
if testing.Short() {
t.Skip("Integration test.")
}
Function TestCreateInvoice
has 95 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestCreateInvoice(t *testing.T) {
if testing.Short() {
t.Skip("Integration test.")
}
Function TestEmptyDataSource
has 94 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestEmptyDataSource(t *testing.T) {
if testing.Short() {
t.Skip("Integration test.")
}
Function TestDeleteInvoice
has 81 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestDeleteInvoice(t *testing.T) {
if testing.Short() {
t.Skip("Integration test.")
}
Function TestRetrieveInvoice
has 78 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestRetrieveInvoice(t *testing.T) {
if testing.Short() {
t.Skip("Integration test.")
}
Function TestCreatePlanGroup
has 63 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestCreatePlanGroup(t *testing.T) {
if testing.Short() {
t.Skip("Integration test.")
}
Function TestFormattingOfSourceInCustomAttributeUpdate
has 62 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestFormattingOfSourceInCustomAttributeUpdate(t *testing.T) {
expected := map[string]interface{}{
"attributes": map[string]interface{}{
"custom": map[string]interface{}{
Function TestConnectSubscriptions
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestConnectSubscriptions(t *testing.T) {
expected := map[string]interface{}{
"subscriptions": []interface{}{
map[string]interface{}{
"data_source_uuid": "ds_uuid1",
Function TestImportCustomers
has 54 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func TestImportCustomers(t *testing.T) {
if !*cm {
t.SkipNow()
return
}
Method API.updateImpl
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func (api API) updateImpl(path string, uuid string, input interface{}, output interface{}, method string) error {
Method Errors.IsInvoiceAndItsEntitiesAlreadyExist
has 5 return statements (exceeds 4 allowed). Open
Open
func (e Errors) IsInvoiceAndItsEntitiesAlreadyExist() (is bool) {
if e == nil {
return
}
if msg := e[ErrKeyExternalID]; msg != ErrValInvoiceExternalIDExists {