Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 61 for fullpath (0.21 sec)

  1. src/net/http/fs_test.go

    		t.Skipf("skipping; failed to run strace: %v", err)
    	}
    
    	filename := fmt.Sprintf("1kb-%d", os.Getpid())
    	filepath := path.Join(os.TempDir(), filename)
    
    	if err := os.WriteFile(filepath, bytes.Repeat([]byte{'a'}, 1<<10), 0755); err != nil {
    		t.Fatal(err)
    	}
    	defer os.Remove(filepath)
    
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/devicemanager/manager_test.go

    }
    
    func tmpSocketDir() (socketDir, socketName, pluginSocketName string, err error) {
    	socketDir, err = os.MkdirTemp("", "device_plugin")
    	if err != nil {
    		return
    	}
    	socketName = filepath.Join(socketDir, "server.sock")
    	pluginSocketName = filepath.Join(socketDir, "device-plugin.sock")
    	os.MkdirAll(socketDir, 0755)
    	return
    }
    
    func TestNewManagerImpl(t *testing.T) {
    	socketDir, socketName, _, err := tmpSocketDir()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	// Fetch TLS key and pem files from test-data/ directory.
    	//	dir, _ := os.Getwd()
    	//	testDataDir := filepath.Join(filepath.Dir(dir), "test-data")
    	//
    	//	pemFile := filepath.Join(testDataDir, "server.pem")
    	//	keyFile := filepath.Join(testDataDir, "server.key")
    	cer, err := tls.X509KeyPair(cert, key)
    	if err != nil {
    		t.Fatalf("Failed to load certificate: %v", err)
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            succeeds "c"
    
            and:
            file("out/nested/b.txt").text == "bar"
        }
    
        @Issue("GRADLE-3418")
        def "can copy files with #filePath in path when excluding #pattern"() {
            given:
            file("test/${filePath}/a.txt").touch()
    
            buildScript """
                task copy(type: Copy) {
                    into "out"
                    from "test"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/builder_test.go

    limitations under the License.
    */
    
    package resource
    
    import (
    	"bytes"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"net/http/httptest"
    	"os"
    	"path/filepath"
    	"reflect"
    	"strings"
    	"testing"
    
    	"sigs.k8s.io/yaml"
    
    	apiequality "k8s.io/apimachinery/pkg/api/equality"
    	"k8s.io/apimachinery/pkg/api/meta"
    	"k8s.io/apimachinery/pkg/api/meta/testrestmapper"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 01 11:58:41 UTC 2023
    - 56.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    func loadObjects(dir string) []*unstructured.Unstructured {
    	result := []*unstructured.Unstructured{}
    	err := filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		} else if d.IsDir() {
    			return nil
    		} else if filepath.Ext(d.Name()) != ".yaml" {
    			return nil
    		}
    		// Read the file in as []byte
    		data, err := os.ReadFile(path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  7. tests/integration/ambient/baseline_test.go

    		// Create a copy to avoid races, as tests are run in parallel
    		c := c
    		testName := strings.TrimSuffix(c.ConfigFile, filepath.Ext(c.ConfigFile))
    		t.NewSubTest(testName).Run(func(t framework.TestContext) {
    			// Apply the policy.
    			cfg := t.ConfigIstio().File(c.Namespace.Name(), filepath.Join("testdata", c.ConfigFile))
    			retry.UntilSuccessOrFail(t, func() error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  8. pkg/kubelet/kuberuntime/kuberuntime_container.go

    limitations under the License.
    */
    
    package kuberuntime
    
    import (
    	"context"
    	"errors"
    	"fmt"
    	"io"
    	"math/rand"
    	"net/url"
    	"os"
    	"path/filepath"
    	"regexp"
    	goruntime "runtime"
    	"sort"
    	"strconv"
    	"strings"
    	"sync"
    	"time"
    
    	crierror "k8s.io/cri-api/pkg/errors"
    
    	"github.com/opencontainers/selinux/go-selinux"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  9. src/syscall/zsyscall_windows.go

    	n = uint32(r0)
    	if n == 0 {
    		err = errnoErr(e1)
    	}
    	return
    }
    
    func getFinalPathNameByHandle(file Handle, filePath *uint16, filePathSize uint32, flags uint32) (n uint32, err error) {
    	r0, _, e1 := Syscall6(procGetFinalPathNameByHandleW.Addr(), 4, uintptr(file), uintptr(unsafe.Pointer(filePath)), uintptr(filePathSize), uintptr(flags), 0, 0)
    	n = uint32(r0)
    	if n == 0 || n >= filePathSize {
    		err = errnoErr(e1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 56.3K bytes
    - Viewed (0)
  10. pilot/pkg/serviceregistry/kube/controller/ambient/ambientindex_test.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package ambient
    
    import (
    	"fmt"
    	"net/netip"
    	"path/filepath"
    	"strings"
    	"testing"
    	"time"
    
    	corev1 "k8s.io/api/core/v1"
    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	k8sv1 "sigs.k8s.io/gateway-api/apis/v1"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 01:04:50 UTC 2024
    - 70.2K bytes
    - Viewed (0)
Back to top