Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 312 for buzz (0.04 sec)

  1. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/testing/eventclock/fake.go

    	// this is nil or its counter is zero.
    	clientWG *waitGroupCounter
    
    	// fuzz is the amount of noise to add to scheduling.  An event
    	// requested to run at time T will run at some time chosen
    	// uniformly at random from the interval [T, T+fuzz]; the upper
    	// bound is exclusive iff fuzz is non-zero.
    	fuzz time.Duration
    
    	// rand is the random number generator to use in fuzzing
    	rand *rand.Rand
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 7.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/kubeopenapi_test.go

    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apiextensions-apiserver/pkg/apis/apiextensions"
    	apiextensionsv1beta1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1"
    	"k8s.io/apimachinery/pkg/util/json"
    )
    
    func TestStructuralKubeOpenAPIRoundtrip(t *testing.T) {
    	f := fuzz.New()
    	seed := time.Now().UnixNano()
    	t.Logf("seed = %v", seed)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:16 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  3. pkg/apis/resource/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/resource"
    )
    
    // Funcs contains the fuzzer functions for the resource group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(obj *resource.ResourceClaimSpec, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/roundtrip.go

    	roundTripTypes(t, scheme, codecFactory, fuzzer, nonRoundTrippableTypes, true)
    }
    
    func RoundTripTypes(t *testing.T, scheme *runtime.Scheme, codecFactory runtimeserializer.CodecFactory, fuzzer *fuzz.Fuzzer, nonRoundTrippableTypes map[schema.GroupVersionKind]bool) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 16.8K bytes
    - Viewed (0)
  5. tests/fuzz/autoregistration_controller_fuzzer.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package fuzz
    
    import (
    	"fmt"
    	"time"
    
    	fuzz "github.com/AdaLogics/go-fuzz-headers"
    
    	"istio.io/api/networking/v1alpha3"
    	"istio.io/istio/pilot/pkg/autoregistration"
    	"istio.io/istio/pilot/pkg/config/memory"
    	"istio.io/istio/pilot/pkg/model"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Sep 19 20:41:55 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/apis/audit/fuzzer/fuzzer.go

    package fuzzer
    
    import (
    	"strings"
    
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apimachinery/pkg/runtime"
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/apiserver/pkg/apis/audit"
    )
    
    // Funcs returns the fuzzer functions for the audit api group.
    func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(e *audit.Event, c fuzz.Continue) {
    			c.FuzzNoCustom(e)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 04 16:10:17 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/options_test.go

    */
    
    package v1
    
    import (
    	"encoding/json"
    	"fmt"
    	"reflect"
    	"testing"
    
    	fuzz "github.com/google/gofuzz"
    )
    
    func TestPatchOptionsIsSuperSetOfUpdateOptions(t *testing.T) {
    	f := fuzz.New()
    	for i := 0; i < 1000; i++ {
    		t.Run(fmt.Sprintf("Run %d/1000", i), func(t *testing.T) {
    			update := UpdateOptions{}
    			f.Fuzz(&update)
    
    			b, err := json.Marshal(update)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 04 21:51:48 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  8. tests/fuzz/regression_test.go

    		}
    		t.Run(tt.name, func(t *testing.T) {
    			runRegressionTest(t, tt.name, tt.fuzzer)
    		})
    	}
    	t.Run("completeness", func(t *testing.T) {
    		match := regexp.MustCompile(`func Fuzz.+\(`)
    		fuzzers, err := walkMatch(filepath.Join(env.IstioSrc, "tests/fuzz"), match)
    		if err != nil {
    			t.Fatal(err)
    		}
    		allFuzzers := sets.New(fuzzers...)
    		if !allFuzzers.Equals(testedFuzzers) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 10 16:43:09 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. docs_src/app_testing/app_b/test_main.py

        }
    
    
    def test_create_item_bad_token():
        response = client.post(
            "/items/",
            headers={"X-Token": "hailhydra"},
            json={"id": "bazz", "title": "Bazz", "description": "Drop the bazz"},
        )
        assert response.status_code == 400
        assert response.json() == {"detail": "Invalid X-Token header"}
    
    
    def test_create_existing_item():
        response = client.post(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  10. docs_src/app_testing/app_b_an_py39/test_main.py

        }
    
    
    def test_create_item_bad_token():
        response = client.post(
            "/items/",
            headers={"X-Token": "hailhydra"},
            json={"id": "bazz", "title": "Bazz", "description": "Drop the bazz"},
        )
        assert response.status_code == 400
        assert response.json() == {"detail": "Invalid X-Token header"}
    
    
    def test_create_existing_item():
        response = client.post(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Mar 13 19:07:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top