INNER CODE UNIT · Go

TestVerifyBoilerPlate

kubernetes/kubeadm · kinder/hack/verify-boilerplate_test.go:23

func TestVerifyBoilerPlate(t *testing.T) {
	testcases := []struct {
		name          string
		bp            string
		expectedError bool
	}{
		{
			name: "valid: boilerplate is valid",
			bp: `\/*
Copyright 2019 The Kubernetes Authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…