Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for inScope (0.24 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/DefaultModelRegistry.java

            for (ModelReference<?> input : inputs) {
                if (input.getPath() == null && input.getScope() == null) {
                    result.add(new BindingPredicate(input.inScope(ModelPath.ROOT)));
                } else {
                    result.add(new BindingPredicate(input));
                }
            }
            return result.build();
        }
    
        private class GoalGraph {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/IO.kt

     *
     * [close] guarantees all scheduled IO actions are executed before returning.
     *
     * Each [IOScope] operates independently and failures in one [IOScope]
     * do not affect existing or future [IOScope]s.
     *
     * Each [IOScope] can only be used from a single thread at a time.
     */
    interface IOScope : IO, AutoCloseable
    
    
    /**
     * A Gradle build service to offload IO actions to a dedicated thread.
     */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:45 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/net/addrselect_test.go

    				k := len(inCopy) - j - 1
    				inCopy[j], inCopy[k] = inCopy[k], inCopy[j]
    				srcCopy[j], srcCopy[k] = srcCopy[k], srcCopy[j]
    			}
    			sortByRFC6724withSrcs(inCopy, srcCopy)
    			if !reflect.DeepEqual(inCopy, tt.want) {
    				t.Errorf("test %d, starting backwards:\nin = %s\ngot: %s\nwant: %s\n", i, tt.in, inCopy, tt.want)
    			}
    		}
    
    	}
    
    }
    
    func TestRFC6724PolicyTableOrder(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 05 07:16:00 UTC 2022
    - 8.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/concurrent/DefaultAsyncIOScopeFactoryTest.kt

    import java.util.concurrent.Executors
    import java.util.concurrent.TimeUnit
    import java.util.concurrent.TimeoutException
    
    
    class DefaultAsyncIOScopeFactoryTest {
    
        @Test
        fun `#io failure is reported upon IOScope#close`() {
    
            withAsyncIOScopeFactory {
    
                val failure = IOException()
    
                val scope = newScope().apply {
                    io { throw failure }
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/BuildServices.kt

        executorServiceProvider: () -> ExecutorService
    ) : Closeable, AsyncIOScopeFactory {
    
        private
        val executorService = lazy(executorServiceProvider)
    
        override fun newScope(): IOScope = object : IOScope {
    
            private
            val failure = AtomicReference<Throwable?>(null)
    
            private
            var pending: Future<*>? = null
    
            override fun io(action: () -> Unit) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. association.go

    	"gorm.io/gorm/utils"
    )
    
    // Association Mode contains some helper methods to handle relationship things easily.
    type Association struct {
    	DB           *DB
    	Relationship *schema.Relationship
    	Unscope      bool
    	Error        error
    }
    
    func (db *DB) Association(column string) *Association {
    	association := &Association{DB: db}
    	table := db.Statement.Table
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:49:45 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/helpers_test.go

    				}},
    			},
    			expectErr: true,
    		},
    	}
    
    	for i, tc := range tc {
    		inCopy := tc.in.DeepCopy()
    		out, err := LabelSelectorAsSelector(tc.in)
    		// after calling LabelSelectorAsSelector, tc.in shouldn't be modified
    		if !reflect.DeepEqual(inCopy, tc.in) {
    			t.Errorf("[%v]expected:\n\t%#v\nbut got:\n\t%#v", i, inCopy, tc.in)
    		}
    		if err == nil && tc.expectErr {
    			t.Errorf("[%v]expected error but got none.", i)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. src/encoding/asn1/marshal_test.go

    		out any
    	}
    	var testData []testCase
    	for _, test := range unmarshalTestData {
    		pv := reflect.New(reflect.TypeOf(test.out).Elem())
    		inCopy := make([]byte, len(test.in))
    		copy(inCopy, test.in)
    		outCopy := pv.Interface()
    
    		testData = append(testData, testCase{
    			in:  inCopy,
    			out: outCopy,
    		})
    	}
    
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		for _, testCase := range testData {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go

    func TestSafeSort(t *testing.T) {
    	tests := []struct {
    		name   string
    		in     []string
    		inCopy []string
    		want   []string
    	}{
    		{
    			name:   "nil strings",
    			in:     nil,
    			inCopy: nil,
    			want:   nil,
    		},
    		{
    			name:   "ordered strings",
    			in:     []string{"bar", "foo"},
    			inCopy: []string{"bar", "foo"},
    			want:   []string{"bar", "foo"},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 29.9K bytes
    - Viewed (0)
  10. src/net/textproto/reader_test.go

    	if got, want := totalAlloc/count, uint64(32768); got > want {
    		t.Fatalf("ReadMIMEHeader allocated %v bytes, want < %v", got, want)
    	}
    }
    
    type readResponseTest struct {
    	in       string
    	inCode   int
    	wantCode int
    	wantMsg  string
    }
    
    var readResponseTests = []readResponseTest{
    	{"230-Anonymous access granted, restrictions apply\n" +
    		"Read the file README.txt,\n" +
    		"230  please",
    		23,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 05 18:31:56 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top