Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for copyTest (0.23 sec)

  1. pkg/file/file_test.go

    	assert.Equal(t, m.Mode(), 0o750)
    
    	body, _ := io.ReadAll(f)
    	// Contents should be copied
    	assert.Equal(t, body, []byte("hello world"))
    }
    
    func TestCopy(t *testing.T) {
    	copyTest(t, Copy)
    }
    
    func TestAtomicCopy(t *testing.T) {
    	copyTest(t, AtomicCopy)
    }
    
    func TestAtomicWrite(t *testing.T) {
    	d := t.TempDir()
    	file := filepath.Join(d, "test")
    	data := []byte("hello world")
    	err := AtomicWrite(file, data, 0o750)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 11 19:10:54 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. pkg/api/testing/copy_test.go

    Tim Hockin <******@****.***> 1679595032 -0700
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:45:31 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. src/make.bat

    if x%2==x-no-clean...
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. maven-artifact/src/main/java/org/apache/maven/artifact/ArtifactUtils.java

            clone.setFile(artifact.getFile());
    
            clone.setAvailableVersions(copyList(artifact.getAvailableVersions()));
            if (artifact.getVersion() != null) {
                clone.setBaseVersion(artifact.getBaseVersion());
            }
            clone.setDependencyFilter(artifact.getDependencyFilter());
            clone.setDependencyTrail(copyList(artifact.getDependencyTrail()));
            clone.setDownloadUrl(artifact.getDownloadUrl());
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu Apr 06 08:51:18 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  5. src/text/template/parse/node.go

    	for _, n := range l.Nodes {
    		n.writeTo(sb)
    	}
    }
    
    func (l *ListNode) CopyList() *ListNode {
    	if l == nil {
    		return l
    	}
    	n := l.tr.newList(l.Pos)
    	for _, elem := range l.Nodes {
    		n.append(elem.Copy())
    	}
    	return n
    }
    
    func (l *ListNode) Copy() Node {
    	return l.CopyList()
    }
    
    // TextNode holds plain text.
    type TextNode struct {
    	NodeType
    	Pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  6. pkg/ctrlz/assets/static/js/clipboard-1.7.1.min.js

    em),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execComm...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 10.7K bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/mod_vendor.txt

    # if any package within their module is copied.
    exists vendor/a/foo/AUTHORS.txt
    exists vendor/a/foo/CONTRIBUTORS
    exists vendor/a/foo/LICENSE
    exists vendor/a/foo/PATENTS
    exists vendor/a/foo/COPYING
    exists vendor/a/foo/COPYLEFT
    exists vendor/x/NOTICE!
    exists vendor/mysite/myname/mypkg/LICENSE.txt
    
    ! exists vendor/a/foo/licensed-to-kill
    ! exists vendor/w
    ! exists vendor/w/LICENSE
    ! exists vendor/x/x2
    ! exists vendor/x/x2/LICENSE
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  8. common/config/license-lint.yml

      - W3C
      - Xnet
      - Zlib
    
    reciprocal_licenses:
      - CC0-1.0
      - APSL-2.0
      - CDDL-1.0
      - CDDL-1.1
      - CPL-1.0
      - EPL-1.0
      - IPL-1.0
      - MPL-1.0
      - MPL-1.1
      - MPL-2.0
      - MPL-2.0-no-copyleft-exception
      - Ruby
    
    restricted_licenses:
      - GPL-1.0-only
      - GPL-1.0-or-later
      - GPL-2.0-only
      - GPL-2.0-or-later
      - GPL-3.0-only
      - GPL-3.0-or-later
      - LGPL-2.0-only
      - LGPL-2.0-or-later
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 25 19:26:20 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/test/testdata/gen/copyGen.go

    	fmt.Fprintf(w, "}\n")
    
    	// gofmt result
    	b := w.Bytes()
    	src, err := format.Source(b)
    	if err != nil {
    		fmt.Printf("%s\n", b)
    		panic(err)
    	}
    
    	// write to file
    	err = os.WriteFile("../copy_test.go", src, 0666)
    	if err != nil {
    		log.Fatalf("can't write output: %v\n", err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  10. src/compress/flate/inflate.go

    			f.err = CorruptInputError(f.roffset)
    			return
    		}
    
    		f.copyLen, f.copyDist = length, dist
    		goto copyHistory
    	}
    
    copyHistory:
    	// Perform a backwards copy according to RFC section 3.2.3.
    	{
    		cnt := f.dict.tryWriteCopy(f.copyDist, f.copyLen)
    		if cnt == 0 {
    			cnt = f.dict.writeCopy(f.copyDist, f.copyLen)
    		}
    		f.copyLen -= cnt
    
    		if f.dict.availWrite() == 0 || f.copyLen > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 23:20:03 UTC 2023
    - 20.4K bytes
    - Viewed (0)
Back to top