Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for CreateBar (0.17 sec)

  1. pkg/wasm/httpfetcher_test.go

    				}
    			} else if string(b) != wantWasmModule {
    				t.Errorf("downloaded wasm module got %v, want wasm", string(b))
    			}
    		})
    	}
    }
    
    func createTar(t *testing.T, b []byte) []byte {
    	t.Helper()
    	var buf bytes.Buffer
    	tw := tar.NewWriter(&buf)
    	hdr := &tar.Header{
    		Name: "plugin.wasm",
    		Mode: 0o600,
    		Size: int64(len(b)),
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 15:56:41 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/MavenJarCreator.groovy

    class MavenJarCreator {
        int minimumSizeKB = 0
        int maximumSizeKB = 0
        Random random = new Random(1L)
        byte[] charsToUse = "abcdefghijklmnopqrstuvwxyz0123456789".getBytes()
    
        void createJar(MavenModule mavenModule, File artifactFile) {
            try {
                artifactFile.withOutputStream { stream ->
                    ZipOutputStream out = new ZipOutputStream(stream)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 05 09:51:22 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  3. build-logic/performance-testing/src/main/groovy/gradlebuild/performance/generator/MavenModule.groovy

                publishArtifact(artifact)
            }
            publishArtifact([:])
            return this
        }
    
        void createEmptyJar(File artifactFile) {
            mavenJarCreator.createJar(this, artifactFile)
        }
    
        private File publishArtifact(Map<String, ?> artifact) {
            def artifactFile = artifactFile(artifact)
            if (type != 'pom') {
                if (type == 'jar') {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 5.1K bytes
    - Viewed (0)
Back to top