Skip to content

Commit 538a092

Browse files
committed
fix(azure): add missing t.Helper() and godoc comments to deprecated wrappers
1 parent 3656a69 commit 538a092

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

modules/azure/networkinterface.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ func GetNetworkInterfacePublicIPsContextE(ctx context.Context, nicName string, r
161161
return publicIPs, nil
162162
}
163163

164-
// GetNetworkInterfaceConfigurationE gets a Network Interface Configuration in the specified Azure Resource Group.
164+
// GetNetworkInterfaceConfigurationE gets a Network Interface IP Configuration in the specified Azure Resource Group.
165165
//
166166
// Deprecated: Use [GetNetworkInterfaceConfigurationContextE] instead.
167167
func GetNetworkInterfaceConfigurationE(nicName string, nicConfigName string, resGroupName string, subscriptionID string) (*armnetwork.InterfaceIPConfiguration, error) {

modules/azure/virtualnetwork.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
//
1515
// Deprecated: Use [VirtualNetworkExistsContext] instead.
1616
func VirtualNetworkExists(t testing.TestingT, vnetName string, resGroupName string, subscriptionID string) bool {
17+
t.Helper()
18+
1719
return VirtualNetworkExistsContext(t, context.Background(), vnetName, resGroupName, subscriptionID)
1820
}
1921

@@ -54,6 +56,8 @@ func VirtualNetworkExistsContextE(ctx context.Context, vnetName string, resGroup
5456
//
5557
// Deprecated: Use [SubnetExistsContext] instead.
5658
func SubnetExists(t testing.TestingT, subnetName string, vnetName string, resGroupName string, subscriptionID string) bool {
59+
t.Helper()
60+
5761
return SubnetExistsContext(t, context.Background(), subnetName, vnetName, resGroupName, subscriptionID)
5862
}
5963

@@ -94,6 +98,8 @@ func SubnetExistsContextE(ctx context.Context, subnetName string, vnetName strin
9498
//
9599
// Deprecated: Use [CheckSubnetContainsIPContext] instead.
96100
func CheckSubnetContainsIP(t testing.TestingT, ipAddress string, subnetName string, vnetName string, resGroupName string, subscriptionID string) bool {
101+
t.Helper()
102+
97103
return CheckSubnetContainsIPContext(t, context.Background(), ipAddress, subnetName, vnetName, resGroupName, subscriptionID)
98104
}
99105

@@ -146,6 +152,8 @@ func CheckSubnetContainsIPContextE(ctx context.Context, ipAddress string, subnet
146152
//
147153
// Deprecated: Use [GetVirtualNetworkSubnetsContext] instead.
148154
func GetVirtualNetworkSubnets(t testing.TestingT, vnetName string, resGroupName string, subscriptionID string) map[string]string {
155+
t.Helper()
156+
149157
return GetVirtualNetworkSubnetsContext(t, context.Background(), vnetName, resGroupName, subscriptionID)
150158
}
151159

@@ -200,6 +208,8 @@ func GetVirtualNetworkSubnetsContextE(ctx context.Context, vnetName string, resG
200208
//
201209
// Deprecated: Use [GetVirtualNetworkDNSServerIPsContext] instead.
202210
func GetVirtualNetworkDNSServerIPs(t testing.TestingT, vnetName string, resGroupName string, subscriptionID string) []string {
211+
t.Helper()
212+
203213
return GetVirtualNetworkDNSServerIPsContext(t, context.Background(), vnetName, resGroupName, subscriptionID)
204214
}
205215

0 commit comments

Comments
 (0)