Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestTypeProvider (0.27 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/mutation/typeprovider_test.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package mutation
    
    import (
    	"reflect"
    	"testing"
    )
    
    func TestTypeProvider(t *testing.T) {
    	for _, tc := range []struct {
    		name          string
    		expression    string
    		expectedValue any
    	}{
    		{
    			name:          "not an object",
    			expression:    `2 * 31 * 1847`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/typeresolver_test.go

    import (
    	"reflect"
    	"testing"
    
    	"github.com/google/cel-go/cel"
    
    	"k8s.io/apimachinery/pkg/util/version"
    	"k8s.io/apiserver/pkg/cel/environment"
    	"k8s.io/apiserver/pkg/cel/mutation"
    )
    
    func TestTypeProvider(t *testing.T) {
    	for _, tc := range []struct {
    		name          string
    		expression    string
    		expectedValue any
    	}{
    		{
    			name:          "not an object",
    			expression:    `string(114514)`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top