Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 45 for testIde (0.23 sec)

  1. platforms/software/build-init/src/main/resources/org/gradle/buildinit/tasks/templates/scalaapplication/multi/list/junit5/LinkedListTest.scala.template

    import org.junit.jupiter.api.Assertions._
    
    class LinkedListTest {
        @Test def testConstructor(): Unit = {
            val list = new LinkedList()
            assertEquals(0, list.size())
        }
    
        @Test def testAdd(): Unit = {
            val list = new LinkedList()
    
            list.add("one")
            assertEquals(1, list.size())
            assertEquals("one", list.get(0))
    
            list.add("two")
            assertEquals(2, list.size())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Dec 26 19:39:09 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/impldeps/BaseGradleImplDepsTestCodeIntegrationTest.groovy

            import org.gradle.api.Plugin;
    
            public class MyPlugin implements Plugin<Project> {
                public void apply(Project p) {}
            }
            """
        }
    
        protected TestFile testCode() {
            file("src/test/java/org/acme/BaseTestPluginTest.java") << """
            package org.acme;
            import org.gradle.testkit.runner.GradleRunner;
            import org.junit.Test;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  3. test/typeparam/mapsimp.dir/main.go

    	if !a.Equal(m1, m2) {
    		panic(fmt.Sprintf("a.Copy(%v) = %v, want %v", m1, m2, m1))
    	}
    	m2[16] = 32
    	if a.Equal(m1, m2) {
    		panic(fmt.Sprintf("a.Equal(%v, %v) = true, want false", m1, m2))
    	}
    }
    
    func TestAdd() {
    	mc := a.Copy(m1)
    	a.Add(mc, mc)
    	if !a.Equal(mc, m1) {
    		panic(fmt.Sprintf("a.Add(%v, %v) = %v, want %v", m1, m1, mc, m1))
    	}
    	a.Add(mc, map[int]int{16: 32})
    	want := map[int]int{1: 2, 2: 4, 4: 8, 8: 16, 16: 32}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  4. test/rangegen.go

    					code1 := gen(b, "testSlice"+s, "_, ", "slice2", i, double, func(c int) bool { return c == j || c == k })
    					if code0 != code1 {
    						panic("bad generator")
    					}
    					tests += "test" + s + "()\n"
    					p(b, testCode, "test"+s, []int{j, k}, "testFunc"+s, "testSlice"+s)
    					flush(false)
    				}
    			}
    		}
    	}
    	for i := 1; i <= max; i++ {
    		maxDouble := -1
    		if long {
    			maxDouble = i
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 23:35:19 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. pkg/scheduler/metrics/metric_recorder_test.go

    		go func() {
    			fakeRecorder.Inc()
    			wg.Done()
    		}()
    	}
    	wg.Wait()
    	if fakeRecorder.counter != int64(loops) {
    		t.Errorf("Expected %v, got %v", loops, fakeRecorder.counter)
    	}
    }
    
    func TestDec(t *testing.T) {
    	fakeRecorder := fakePodsRecorder{counter: 100}
    	var wg sync.WaitGroup
    	loops := 100
    	wg.Add(loops)
    	for i := 0; i < loops; i++ {
    		go func() {
    			fakeRecorder.Dec()
    			wg.Done()
    		}()
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 09 00:51:07 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  6. test/typeparam/maps.go

    	if !_Equal(m1, m2) {
    		panic(fmt.Sprintf("_Copy(%v) = %v, want %v", m1, m2, m1))
    	}
    	m2[16] = 32
    	if _Equal(m1, m2) {
    		panic(fmt.Sprintf("_Equal(%v, %v) = true, want false", m1, m2))
    	}
    }
    
    func TestAdd() {
    	mc := _Copy(m1)
    	_Add(mc, mc)
    	if !_Equal(mc, m1) {
    		panic(fmt.Sprintf("_Add(%v, %v) = %v, want %v", m1, m1, mc, m1))
    	}
    	_Add(mc, map[int]int{16: 32})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  7. pilot/pkg/xds/nds_test.go

    	"istio.io/istio/pilot/pkg/util/protoconv"
    	v3 "istio.io/istio/pilot/pkg/xds/v3"
    	"istio.io/istio/pilot/test/xds"
    	"istio.io/istio/pkg/config/constants"
    	dnsProto "istio.io/istio/pkg/dns/proto"
    )
    
    func TestNDS(t *testing.T) {
    	cases := []struct {
    		name     string
    		meta     model.NodeMetadata
    		expected *dnsProto.NameTable
    	}{
    		{
    			name: "auto allocate",
    			meta: model.NodeMetadata{
    				DNSCapture:      true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 27 16:59:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/DefaultExcludeRuleContainerTest.java

            assertThat(defaultExcludeRuleContainer.getRules(), equalTo(sourceExcludeRules));
            assertThat(defaultExcludeRuleContainer.getRules(), not(sameInstance(sourceExcludeRules)));
        }
    
        @Test
        public void testAdd() {
            DefaultExcludeRuleContainer excludeRuleContainer = new DefaultExcludeRuleContainer();
            Map<String, String> excludeRuleArgs1 = WrapUtil.toMap("group", "value1");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:11 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/CacheResolveIntegrationTest.groovy

            abusedCoordinates.pom.file.replace('<groupId>org.spring</groupId>', '<groupId>org.spring/../../../../../</groupId>')
            // Our test dependency that now has a crafty dependency itself
            def testDep = mavenHttpRepo.module('org.test', 'test').dependsOn(pwnedDep, type: '/../../../../.ssh/pwned.txt').publish()
    
            def fakeDep = temporaryFolder.testDirectory.file('fake-repo/pwned.txt')
            fakeDep << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 22 01:27:55 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  10. docs/pt/docs/history-design-future.md

    Isso significa que o **FastAPI** foi testado especificamente com os editores usados por 80% dos desenvolvedores Python. Como a maioria dos outros editores tendem a funcionar de forma similar, todos os seus benefĂ­cios devem funcionar para virtualmente todos os editores.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top