Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 138 for newRule (0.13 sec)

  1. platforms/documentation/docs/src/samples/build-organization/publishing-convention-plugins/kotlin/convention-plugins/src/test/kotlin/com/myorg/PluginTest.kt

        protected lateinit var buildFile: File
    
        @Before
        fun setup() {
            settingsFile = testProjectDir.newFile("settings.gradle.kts")
            settingsFile.appendText("""
                rootProject.name = "test"
            """)
            buildFile = testProjectDir.newFile("build.gradle.kts")
        }
    
        fun runTask(task: String): BuildResult {
            return GradleRunner.create()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/AbstractNativeLanguageIncrementalCompileIntegrationTest.groovy

            outputs.snapshot { run "mainExecutable" }
    
            when:
            final newFile = file("src/main/${app.sourceType}/changed.${app.sourceExtension}")
            newFile << sourceFile.text
            sourceFile.delete()
    
            and:
            run "mainExecutable"
    
            then:
            outputs.recompiledFile newFile
            objectFileFor(sourceFile).assertDoesNotExist()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/configurationCache/testKit/kotlin/src/test/kotlin/org/example/BuildLogicFunctionalTest.kt

        @Rule
        @JvmField
        val testProjectDir: TemporaryFolder = TemporaryFolder()
    
        lateinit var buildFile: File
    
        @Before
        fun setup() {
            testProjectDir.newFile("settings.gradle").writeText("")
            buildFile = testProjectDir.newFile("build.gradle")
        }
    
        // tag::functional-test-configuration-cache[]
        @Test
        fun `my task can be loaded from the configuration cache`() {
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/PropertiesUtilTest.java

        public void testStorePropertiesOutputStreamString() throws IOException {
            final Properties outProperties = new Properties();
            outProperties.setProperty("a", "A");
            final File file = tempFolder.newFile("hoge.properties");
            final FileOutputStream outputStream = OutputStreamUtil.create(file);
            PropertiesUtil.store(outProperties, outputStream, "comments");
            CloseableUtil.close(outputStream);
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  5. src/go/types/tuple.go

    // Tuples are used as components of signatures and to represent the type of multiple
    // assignments; they are not first class types of Go.
    type Tuple struct {
    	vars []*Var
    }
    
    // NewTuple returns a new tuple for the given variables.
    func NewTuple(x ...*Var) *Tuple {
    	if len(x) > 0 {
    		return &Tuple{vars: x}
    	}
    	return nil
    }
    
    // Len returns the number variables of tuple t.
    func (t *Tuple) Len() int {
    	if t != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  6. src/os/os_unix_test.go

    func TestNewFileNonBlock(t *testing.T) {
    	t.Parallel()
    	newFileTest(t, false)
    }
    
    func TestNewFileInvalid(t *testing.T) {
    	t.Parallel()
    	const negOne = ^uintptr(0)
    	if f := NewFile(negOne, "invalid"); f != nil {
    		t.Errorf("NewFile(-1) got %v want nil", f)
    	}
    }
    
    func TestSplitPath(t *testing.T) {
    	t.Parallel()
    	for _, tt := range []struct{ path, wantDir, wantBase string }{
    		{"a", ".", "a"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  7. src/syscall/exec_windows_test.go

    		{`C:\Program Files (x32)\Common\`, `"C:\Program Files (x32)\Common\\"`},
    		{`C:\Users\Игорь\`, `C:\Users\Игорь\`},
    		{`Андрей\file`, `Андрей\file`},
    		{`C:\Windows\temp`, `C:\Windows\temp`},
    		{`c:\temp\newfile`, `c:\temp\newfile`},
    		{`\\?\C:\Windows`, `\\?\C:\Windows`},
    		{`\\?\`, `\\?\`},
    		{`\\.\C:\Windows\`, `\\.\C:\Windows\`},
    		{`\\server\share\file`, `\\server\share\file`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. src/debug/buildinfo/buildinfo.go

    	}
    
    	var x exe
    	switch {
    	case bytes.HasPrefix(ident, []byte("\x7FELF")):
    		f, err := elf.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &elfExe{f}
    	case bytes.HasPrefix(ident, []byte("MZ")):
    		f, err := pe.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &peExe{f}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/debug/plan9obj/file.go

    func Open(name string) (*File, error) {
    	f, err := os.Open(name)
    	if err != nil {
    		return nil, err
    	}
    	ff, err := NewFile(f)
    	if err != nil {
    		f.Close()
    		return nil, err
    	}
    	ff.closer = f
    	return ff, nil
    }
    
    // Close closes the [File].
    // If the [File] was created using [NewFile] directly instead of [Open],
    // Close has no effect.
    func (f *File) Close() error {
    	var err error
    	if f.closer != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/AbiExtractingClasspathResourceHasherTest.groovy

            def fileSnapshotContext = Mock(RegularFileSnapshotContext)
            def fileSnapshot = Mock(RegularFileSnapshot)
    
            given:
            def file = temporaryDirectory.newFile('String.class')
            file.bytes = bytesOf(String.class)
    
            when:
            resourceHasher.hash(fileSnapshotContext)
    
            then:
            1 * fileSnapshotContext.getSnapshot() >> fileSnapshot
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top