Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestEscaping (0.16 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/escaping_test.go

    limitations under the License.
    */
    
    package cel
    
    import (
    	"fmt"
    	"regexp"
    	"testing"
    
    	fuzz "github.com/google/gofuzz"
    )
    
    // TestEscaping tests that property names are escaped as expected.
    func TestEscaping(t *testing.T) {
    	cases := []struct {
    		unescaped   string
    		escaped     string
    		unescapable bool
    	}{
    		// '.', '-', '/' and '__' are escaped since
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 10 22:05:55 UTC 2022
    - 6.9K bytes
    - Viewed (0)
  2. src/path/filepath/path_test.go

    	}
    	want := []string{".", "a", filepath.Join("a", "bad"), filepath.Join("a", "next")}
    	if !reflect.DeepEqual(saw, want) {
    		t.Errorf("got directories %v, want %v", saw, want)
    	}
    }
    
    func TestEscaping(t *testing.T) {
    	dir1 := t.TempDir()
    	dir2 := t.TempDir()
    	chdir(t, dir1)
    
    	for _, p := range []string{
    		filepath.Join(dir2, "x"),
    	} {
    		if !filepath.IsLocal(p) {
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:38:19 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top