funcTestIsOpaqueIntResourceName(t*testing.T){// resourceName input with the correct OpaqueIntResourceName prefix ("pod.alpha.kubernetes.io/opaque-int-resource-") should pass
funcTestOpaqueIntResourceName(t*testing.T){// each output should have the correct appended prefix ("pod.alpha.kubernetes.io/opaque-int-resource-") for opaque counted resources.
testCases:=[]struct{
namestring
expectValv1.ResourceName
}{
{
name:"foo",
expectVal:"pod.alpha.kubernetes.io/opaque-int-resource-foo",// append prefix to input string foo
},
{
name:"",
expectVal:"pod.alpha.kubernetes.io/opaque-int-resource-",// append prefix to input empty string