Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 103 for isset (0.24 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultAntBuilderTest.groovy

            when:
            ant.otherProp = 'true'
            ant.condition(property: 'prop', value: 'someValue') {
                or {
                    and {
                        isSet(property: 'otherProp')
                        not { isSet(property: 'missing') }
                    }
                }
            }
    
            then:
            ant.prop == 'someValue'
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 11 16:17:40 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/mutation/unstructured/fieldtype.go

    func NewFieldType(name string) *types.FieldType {
    	return &types.FieldType{
    		// for unstructured, we do not check for its type,
    		// use DynType for all fields.
    		Type: types.DynType,
    		IsSet: func(target any) bool {
    			// for an unstructured object, we allow any field to be considered set.
    			return true
    		},
    		GetFrom: func(target any) (any, error) {
    			if m, ok := target.(map[string]any); ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http2/SettingsTest.kt

    import assertk.assertions.isFalse
    import assertk.assertions.isTrue
    import org.junit.jupiter.api.Test
    
    class SettingsTest {
      @Test
      fun unsetField() {
        val settings = Settings()
        assertThat(settings.isSet(Settings.MAX_CONCURRENT_STREAMS)).isFalse()
        assertThat(settings.getMaxConcurrentStreams()).isEqualTo(Int.MAX_VALUE)
      }
    
      @Test
      fun setFields() {
        val settings = Settings()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/internal/cpu/cpu_s390x.go

    			S390X.HasEDDSA = kdsa.Has(eddsaVerifyEd25519, eddsaSignEd25519, eddsaVerifyEd448, eddsaSignEd448)
    		}
    	}
    
    	S390X.HasVX = isSet(HWCap, hwcap_VX)
    
    	if S390X.HasVX {
    		S390X.HasVXE = facilities.Has(vxe)
    	}
    }
    
    func isSet(hwc uint, value uint) bool {
    	return hwc&value != 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 22 17:11:03 UTC 2020
    - 5.9K bytes
    - Viewed (0)
  5. istioctl/pkg/config/config.go

    	}
    	return w.Flush()
    }
    
    func configSource(flag string, v env.VariableInfo) string {
    	// Environment variables have high precedence in Viper
    	if v.IsSet() {
    		return "$" + v.GetName()
    	}
    
    	if viper.InConfig(flag) {
    		return root.IstioConfig
    	}
    
    	return "default"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Jul 30 12:16:07 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/mutation/mock_test.go

    func (m *mockTypeRef) CELType() *types.Type {
    	return types.NewTypeTypeWithParam(m.objectType)
    }
    
    func (m *mockTypeRef) Field(name string) (*types.FieldType, bool) {
    	return &types.FieldType{
    		Type: types.DynType,
    		IsSet: func(target any) bool {
    			return true
    		},
    		GetFrom: func(target any) (any, error) {
    			return nil, nil
    		},
    	}, true
    }
    
    func (m *mockTypeRef) Val(fields map[string]ref.Val) ref.Val {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 24 00:01:35 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultIsolatedAntBuilderTest.groovy

            Object task = null
            builder.execute {
                property(name: 'message', value: 'a message')
                task = condition(property: 'prop', value: 'a message') {
                    isset(property: 'message')
                }
                task = task.proxy
                propertyValue = project.properties.prop
            }
    
            assertThat(propertyValue, equalTo('a message'))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 22 10:43:11 UTC 2021
    - 6.6K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/saved_model/core/revived_types/asset.h

    namespace tensorflow {
    
    class Asset : public TensorHandleConvertible {
     public:
      static Status Create(ImmediateExecutionContext* ctx,
                           const std::string& saved_model_dir,
                           const std::string& asset_filename,
                           std::unique_ptr<Asset>* output);
    
      // Asset is movable, but not copyable.
      Asset(Asset&& other) = default;
      Asset& operator=(Asset&& other) = default;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 18 21:29:39 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  9. pkg/proxy/ipvs/ipset.go

    )
    
    // IPSetVersioner can query the current ipset version.
    type IPSetVersioner interface {
    	// returns "X.Y"
    	GetVersion() (string, error)
    }
    
    // IPSet wraps util/ipset which is used by IPVS proxier.
    type IPSet struct {
    	utilipset.IPSet
    	// activeEntries is the current active entries of the ipset.
    	activeEntries sets.Set[string]
    	// handle is the util ipset interface handle.
    	handle utilipset.Interface
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/saved_model/core/revived_types/asset.cc

    #include "tensorflow/core/platform/path.h"
    
    namespace tensorflow {
    
    Asset::Asset(ImmediateTensorHandlePtr handle)
        : TensorHandleConvertible(std::move(handle)) {}
    
    Status Asset::Create(ImmediateExecutionContext* ctx,
                         const std::string& saved_model_dir,
                         const std::string& asset_filename,
                         std::unique_ptr<Asset>* output) {
      std::string abs_path =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 09 20:11:48 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top