Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestInvalidPtrValueKind (0.29 sec)

  1. staging/src/k8s.io/apimachinery/pkg/conversion/helper_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package conversion
    
    import "testing"
    
    func TestInvalidPtrValueKind(t *testing.T) {
    	var simple interface{}
    	switch obj := simple.(type) {
    	default:
    		_, err := EnforcePtr(obj)
    		if err == nil {
    			t.Errorf("Expected error on invalid kind")
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 11 14:09:48 UTC 2017
    - 978 bytes
    - Viewed (0)
Back to top