Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for TestExecute (0.14 sec)

  1. src/html/template/multi_test.go

    		if err != nil {
    			t.Fatalf("error parsing files: %v", err)
    		}
    		testExecute(multiExecTests, template, t)
    	}
    
    	{
    		template := New("root")
    		_, err := template.ParseFS(fs, "file*.tmpl")
    		if err != nil {
    			t.Fatalf("error parsing files: %v", err)
    		}
    		testExecute(multiExecTests, template, t)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. src/text/template/multi_test.go

    		if err != nil {
    			t.Fatalf("error parsing files: %v", err)
    		}
    		testExecute(multiExecTests, template, t)
    	}
    
    	{
    		template := New("root")
    		_, err := template.ParseFS(fs, "file*.tmpl")
    		if err != nil {
    			t.Fatalf("error parsing files: %v", err)
    		}
    		testExecute(multiExecTests, template, t)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 10:48:29 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  3. pkg/controller/tainteviction/timed_workers_test.go

    */
    
    package tainteviction
    
    import (
    	"context"
    	"sync"
    	"sync/atomic"
    	"testing"
    	"time"
    
    	"k8s.io/klog/v2/ktesting"
    	testingclock "k8s.io/utils/clock/testing"
    )
    
    func TestExecute(t *testing.T) {
    	testVal := int32(0)
    	wg := sync.WaitGroup{}
    	wg.Add(5)
    	queue := CreateWorkerQueue(func(ctx context.Context, fireAt time.Time, args *WorkArgs) error {
    		atomic.AddInt32(&testVal, 1)
    		wg.Done()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:23:56 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

        mock.assertLastMethodCalled("shutdown");
        List<Runnable> list = testExecutor.shutdownNow();
        mock.assertLastMethodCalled("shutdownNow");
        assertEquals(ImmutableList.of(), list);
      }
    
      public void testExecute() {
        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
        testExecutor.execute(doNothing());
        mock.assertLastMethodCalled("execute");
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 05 19:41:03 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/WrappingExecutorServiceTest.java

        mock.assertLastMethodCalled("shutdown");
        List<Runnable> list = testExecutor.shutdownNow();
        mock.assertLastMethodCalled("shutdownNow");
        assertEquals(ImmutableList.of(), list);
      }
    
      public void testExecute() {
        MockExecutor mock = new MockExecutor();
        TestExecutor testExecutor = new TestExecutor(mock);
        testExecutor.execute(doNothing());
        mock.assertLastMethodCalled("execute");
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jan 05 19:41:03 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  6. src/html/template/exec_test.go

    			}
    		}
    		result := b.String()
    		if result != test.output {
    			t.Errorf("%s: expected\n\t%q\ngot\n\t%q", test.name, test.output, result)
    		}
    	}
    }
    
    func TestExecute(t *testing.T) {
    	testExecute(execTests, nil, t)
    }
    
    var delimPairs = []string{
    	"", "", // default
    	"{{", "}}", // same as default
    	"|", "|", // same
    	"(日)", "(本)", // peculiar
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  7. src/text/template/exec_test.go

    			}
    		}
    		result := b.String()
    		if result != test.output {
    			t.Errorf("%s: expected\n\t%q\ngot\n\t%q", test.name, test.output, result)
    		}
    	}
    }
    
    func TestExecute(t *testing.T) {
    	testExecute(execTests, nil, t)
    }
    
    var delimPairs = []string{
    	"", "", // default
    	"{{", "}}", // same as default
    	"<<", ">>", // distinct
    	"|", "|", // same
    	"(日)", "(本)", // peculiar
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
Back to top