Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 224 for testInit (0.15 sec)

  1. src/crypto/internal/boring/boring_test.go

    // Most functionality in this package is tested by replacing existing code
    // and inheriting that code's tests.
    
    package boring
    
    import "testing"
    
    // Test that func init does not panic.
    func TestInit(t *testing.T) {}
    
    // Test that Unreachable panics.
    func TestUnreachable(t *testing.T) {
    	defer func() {
    		if Enabled {
    			if err := recover(); err == nil {
    				t.Fatal("expected Unreachable to panic")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 15:22:22 UTC 2017
    - 842 bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/dependencies/DefaultDependencyArtifactTest.java

    import org.gradle.api.artifacts.DependencyArtifact;
    import org.junit.Test;
    
    import static org.junit.Assert.assertEquals;
    
    public class DefaultDependencyArtifactTest {
        @Test
        public void testInit() {
            String testName = "name";
            String testType = "type";
            String testExtension = "ext";
            String testClassifier = "classifier";
            String testUrl = "url";
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 22 14:16:41 UTC 2013
    - 1.5K bytes
    - Viewed (0)
  3. pkg/volume/flexvolume/plugin_test.go

    limitations under the License.
    */
    
    package flexvolume
    
    import (
    	"testing"
    
    	"k8s.io/kubernetes/test/utils/harness"
    	"k8s.io/utils/exec/testing"
    )
    
    func TestInit(tt *testing.T) {
    	t := harness.For(tt)
    	defer t.Close()
    
    	plugin, _ := testPlugin(t)
    	plugin.runner = fakeRunner(
    		assertDriverCall(t, successOutput(), "init"),
    	)
    	plugin.Init(plugin.host)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 21 06:54:44 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/artifacts/DefaultExcludeRuleContainerTest.java

    import static org.hamcrest.CoreMatchers.not;
    import static org.hamcrest.CoreMatchers.sameInstance;
    import static org.hamcrest.MatcherAssert.assertThat;
    
    public class DefaultExcludeRuleContainerTest {
        @Test
        public void testInit() {
            assertThat(new DefaultExcludeRuleContainer().getRules().size(), equalTo(0));
        }
    
        @Test
        public void testInitWithRules() {
            Set<ExcludeRule> sourceExcludeRules = new HashSet<ExcludeRule>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:11 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/helpers.go

    	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    	"k8s.io/apimachinery/pkg/runtime/schema"
    	"k8s.io/client-go/dynamic"
    	_ "k8s.io/component-base/logs/testinit" // enable logging flags
    )
    
    var swaggerMetadataDescriptions = metav1.ObjectMeta{}.SwaggerDoc()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 30 11:46:49 UTC 2021
    - 7.2K bytes
    - Viewed (0)
  6. src/go/scanner/scanner_test.go

    	if S.ErrorCount != len(invalidSegments) {
    		t.Errorf("got %d errors; want %d", S.ErrorCount, len(invalidSegments))
    	}
    }
    
    // Verify that initializing the same scanner more than once works correctly.
    func TestInit(t *testing.T) {
    	var s Scanner
    
    	// 1st init
    	src1 := "if true { }"
    	f1 := fset.AddFile("src1", fset.Base(), len(src1))
    	s.Init(f1, []byte(src1), nil, dontInsertSemis)
    	if f1.Size() != len(src1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 28 15:38:31 UTC 2023
    - 34.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/conversion/conversion_test.go

    	"k8s.io/apimachinery/pkg/util/sets"
    	"k8s.io/apimachinery/pkg/util/uuid"
    	"k8s.io/apimachinery/pkg/util/wait"
    	etcd3watcher "k8s.io/apiserver/pkg/storage/etcd3"
    	"k8s.io/client-go/dynamic"
    	_ "k8s.io/component-base/logs/testinit" // enable logging flags
    
    	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
    	apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 06 05:32:34 UTC 2023
    - 47.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/docs/userguide/authoring-builds/other/test_kit.adoc

    == Using TestKit
    
    To use the TestKit, include the following in your plugin's build:
    
    .Declaring the TestKit dependency
    ====
    include::sample[dir="snippets/testKit/junitQuickstart/kotlin",files="build.gradle.kts[tags=declare-gradle-testkit-dependency]"]
    include::sample[dir="snippets/testKit/junitQuickstart/groovy",files="build.gradle[tags=declare-gradle-testkit-dependency]"]
    ====
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 05:36:09 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/docs/userguide/authoring-builds/plugins/testing_gradle_plugins.adoc

    `GradleRunner` is an API provided by TestKit, which internally uses the Tooling API to execute the build.
    
    The following example applies the plugin to the build script under test, configures the extension and executes the build with the task `verifyUrl`.
    Please see the <<test_kit.adoc#test_kit,TestKit documentation>> to get more familiar with the functionality of TestKit.
    
    .UrlVerifierPluginFunctionalTest.groovy
    [source,groovy]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 22:49:20 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. src/container/heap/heap_test.go

    			return
    		}
    		h.verify(t, j2)
    	}
    }
    
    func TestInit0(t *testing.T) {
    	h := new(myHeap)
    	for i := 20; i > 0; i-- {
    		h.Push(0) // all elements are the same
    	}
    	Init(h)
    	h.verify(t, 0)
    
    	for i := 1; h.Len() > 0; i++ {
    		x := Pop(h).(int)
    		h.verify(t, 0)
    		if x != 0 {
    			t.Errorf("%d.th pop got %d; want %d", i, x, 0)
    		}
    	}
    }
    
    func TestInit1(t *testing.T) {
    	h := new(myHeap)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 3.4K bytes
    - Viewed (0)
Back to top