go-selvpcclient: github.com/selectel/go-selvpcclient/selvpcclient/resell/v2/traffic/testing Index | Files

package testing

import "github.com/selectel/go-selvpcclient/selvpcclient/resell/v2/traffic/testing"

Index

Package Files

fixtures.go

Constants

const TestGetTrafficInvalidDataResponseRaw = `
{
    "traffic": {
        "domain": {
            123: {}
        }
    }
}
`

TestGetTrafficInvalidDataResponseRaw represents a raw response from the Get request with invalid traffic data.

const TestGetTrafficInvalidTimestampsRaw = "" /* 748 byte string literal not displayed */

TestGetTrafficInvalidTimestampsRaw represents a raw response from the Get request with invalid timestamps.

const TestGetTrafficRaw = "" /* 670 byte string literal not displayed */

TestGetTrafficRaw represents a raw response from the Get request.

const TestGetTrafficUsedRaw = "" /* 279 byte string literal not displayed */

TestGetTrafficUsedRaw represents a raw response from the Get request with only used traffic.

Variables

var TestGetTrafficUsed = &traffic.DomainTraffic{
    DomainData: []*traffic.Traffic{
        {
            Type: "used",
            TrafficData: traffic.Data{
                Start: trafficStartTimeStamp,
                Stop:  trafficStopTimeStamp,
                Unit:  "B",
                Value: 658003816,
            },
        },
    },
}

TestGetTrafficUsed represents the unmarshalled TestGetTrafficUsedRaw response.

Package testing imports 3 packages (graph). Updated 2020-09-12. Refresh now. Tools for package owners.