Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 170 for gofunc (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/func-attr-invalid.mlir

    func.func @main() attributes {tf._implements = #tf_type.func<@symbol>} {
      func.return
    }
    
    // -----
    
    // expected-error@+1 {{expected symbol while parsing tf.func attribute}}
    func.func @main() attributes {tf._implements = #tf_type.func<{}>} {
      func.return
    }
    
    // -----
    
    // expected-error@+1 {{expected empty string or symbol while parsing tf.func attribute}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 06 09:05:45 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_fuzz.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    import (
    	"time"
    
    	fuzz "github.com/google/gofuzz"
    )
    
    // Fuzz satisfies fuzz.Interface.
    func (t *MicroTime) Fuzz(c fuzz.Continue) {
    	if t == nil {
    		return
    	}
    	// Allow for about 1000 years of randomness. Accurate to a tenth of
    	// micro second. Leave off nanoseconds because JSON doesn't
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  3. pkg/apis/admission/fuzzer/fuzzer.go

    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
    	"k8s.io/apimachinery/pkg/runtime"
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    )
    
    // Funcs returns the fuzzer functions for the admission api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(s *runtime.RawExtension, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 14 21:57:55 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/round_trip_test.go

    package webhook
    
    import (
    	"math/rand"
    	"reflect"
    	"testing"
    	"time"
    
    	"github.com/google/go-cmp/cmp"
    	fuzz "github.com/google/gofuzz"
    
    	authenticationv1 "k8s.io/api/authentication/v1"
    	authenticationv1beta1 "k8s.io/api/authentication/v1beta1"
    )
    
    func TestRoundTrip(t *testing.T) {
    	f := fuzz.New()
    	seed := time.Now().UnixNano()
    	t.Logf("seed = %v", seed)
    	f.RandSource(rand.New(rand.NewSource(seed)))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  5. src/go/doc/example_test.go

    func (Type1) Func1_foo() {}
    func (Type1) func2() {}
    
    func (type2) Func1() {}
    
    type (
    	Conflict          int
    	Conflict_Conflict int
    	Conflict_conflict int
    )
    
    func (Conflict) Conflict() {}
    
    func GFunc[T any]() {}
    
    type GType[T any] int
    
    func (GType[T]) M() {}
    `
    	const test = `
    package p_test
    
    func ExampleConst1() {} // invalid - no support for consts and vars
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/fuzzer.go

    package fuzzer
    
    import (
    	"math/rand"
    
    	"github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    )
    
    // FuzzerFuncs returns a list of func(*SomeType, c fuzz.Continue) functions.
    type FuzzerFuncs func(codecs runtimeserializer.CodecFactory) []interface{}
    
    // FuzzerFor can randomly populate api objects that are destined for version.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 01 19:31:12 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  8. pkg/apis/policy/fuzzer/fuzzer.go

    */
    
    package fuzzer
    
    import (
    	fuzz "github.com/google/gofuzz"
    
    	runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
    	"k8s.io/kubernetes/pkg/apis/policy"
    )
    
    // Funcs returns the fuzzer functions for the policy api group.
    var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
    	return []interface{}{
    		func(s *policy.PodDisruptionBudgetStatus, c fuzz.Continue) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 20:44:13 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/time_fuzz.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package v1
    
    import (
    	"time"
    
    	fuzz "github.com/google/gofuzz"
    )
    
    // Fuzz satisfies fuzz.Interface.
    func (t *Time) Fuzz(c fuzz.Continue) {
    	if t == nil {
    		return
    	}
    	// Allow for about 1000 years of randomness.  Leave off nanoseconds
    	// because JSON doesn't represent them so they can't round-trip
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 1K bytes
    - Viewed (0)
  10. hack/unwanted-dependencies.json

          "github.com/gogo/googleapis": "depends on unmaintained github.com/gogo/protobuf",
          "github.com/gogo/protobuf": "unmaintained",
          "github.com/golang/mock": "unmaintained, archive mode",
          "github.com/google/gofuzz": "unmaintained, archive mode",
          "github.com/google/s2a-go": "cloud dependency, unstable",
          "github.com/google/shlex": "unmaintained, archive mode",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 13 12:31:38 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top