Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sku.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func (s *SKU) GetSize() string {
}

func (s *SKU) GetVMSize() (*VMSizeType, error) {
return getVMSize(s.GetSize())
return GetVMSize(s.GetSize())
}

// GetLocation returns the location for a given SKU.
Expand Down
4 changes: 2 additions & 2 deletions vmsize.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ func parseVMSize(vmSizeName string) ([]string, error) {
return parts, nil
}

// getVMSize is a helper function used by GetVMSize() in sku.go
func getVMSize(vmSizeName string) (*VMSizeType, error) {
// GetVMSize is a helper function used by GetVMSize() in sku.go
func GetVMSize(vmSizeName string) (*VMSizeType, error) {
vmSize := VMSizeType{}

parts, err := parseVMSize(vmSizeName)
Expand Down
6 changes: 3 additions & 3 deletions vmsize_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,11 @@ var testCases = []struct {
},
}

// Test_getSize tests the getSize() function.
func Test_getVMsize(t *testing.T) {
// Test_GetVMSize tests the GetVMSize() function.
func Test_GetVMSize(t *testing.T) {
a := assert.New(t)
for _, test := range testCases {
vmSize, err := getVMSize(test.size)
vmSize, err := GetVMSize(test.size)
a.Equal(test.err, err)
if err != nil {
continue
Expand Down