Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of about 10,000 for Case (0.25 sec)

  1. functional/tester/case.go

    package tester
    
    import (
    	"fmt"
    	"math/rand"
    	"time"
    
    	"go.etcd.io/etcd/v3/functional/rpcpb"
    
    	"go.uber.org/zap"
    )
    
    // Case defines failure/test injection interface.
    // To add a test case:
    //  1. implement "Case" interface
    //  2. define fail case name in "rpcpb.Case"
    type Case interface {
    	// Inject injeccts the failure into the testing cluster at the given
    	// round. When calling the function, the cluster should be in health.
    Go
    - Registered: 2020-10-08 01:10
    - Last Modified: 2020-04-28 00:57
    - 7.8K bytes
    - Viewed (0)
  2. tests/functional/tester/case.go

    import (
    	"fmt"
    	"math/rand"
    	"time"
    
    	"go.etcd.io/etcd/tests/v3/functional/rpcpb"
    
    	"go.uber.org/zap"
    )
    
    // Case defines failure/test injection interface.
    // To add a test case:
    //  1. implement "Case" interface
    //  2. define fail case name in "rpcpb.Case"
    type Case interface {
    	// Inject injeccts the failure into the testing cluster at the given
    	// round. When calling the function, the cluster should be in health.
    Go
    - Registered: 2020-10-22 01:10
    - Last Modified: 2020-10-07 13:09
    - 7.8K bytes
    - Viewed (0)
  3. packages/pug-lexer/test/cases/case.pug

    html
      body
        - var friends = 1
        case friends
          when 0: p you have no friends
          when 1: p you have a friend
          default: p you have #{friends} friends
        - var friends = 0
        case friends
          when 0
          when 1
            p you have very few friends
          default
            p you have #{friends} friends
    
        - var friend = 'Tim:G'
        case friend
          when 'Tim:G':    p Friend is a string
    Plain Text
    - Registered: 2020-10-20 23:35
    - Last Modified: 2017-01-23 01:51
    - 452 bytes
    - Viewed (0)
  4. pages.it/common/case.md

    # case
    
    > Esegui branch diversi in base al valore di un'espressione.
    
    - Esegui il match di una variabile su diverse stringhe per decidere che comando eseguire:
    
    `case {{$metrica}} in {{parole}}) {{wc -w README}}; ;; {{linee}}) {{wc -l README}}; ;; esac`
    
    - Combina pattern con |, utilizzando * come pattern di fallback:
    
    Plain Text
    - Registered: 2020-10-23 14:50
    - Last Modified: 2019-01-28 18:10
    - 448 bytes
    - Viewed (0)
  5. pages/common/case.md

    # case
    
    > Branch based on the value of an expression.
    
    - Match a variable against string literals to decide which command to run:
    
    `case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac`
    
    - Combine patterns with |, use * as a fallback pattern:
    
    Plain Text
    - Registered: 2020-10-23 14:50
    - Last Modified: 2018-02-20 20:58
    - 407 bytes
    - Viewed (0)
  6. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.java

      }
    
      public int getSeqno() {
        return seqno;
      }
    
      public void setWire(ByteString wire) {
        this.wire = wire.hex();
      }
    
      @Override
      protected Case clone() throws CloneNotSupportedException {
        Case result = new Case();
        result.seqno = seqno;
        result.wire = wire;
        result.headers = new ArrayList<>();
        for (Map<String, String> header : headers) {
    Java
    - Registered: 2020-10-20 04:59
    - Last Modified: 2016-07-10 15:34
    - 1.9K bytes
    - Viewed (0)
  7. packages/pug/test/cases/case.pug

    html
      body
        - var friends = 1
        case friends
          when 0: p you have no friends
          when 1: p you have a friend
          default: p you have #{friends} friends
        - var friends = 0
        case friends
          when 0
          when 1
            p you have very few friends
          default
            p you have #{friends} friends
    
        - var friend = 'Tim:G'
        case friend
          when 'Tim:G':    p Friend is a string
    Plain Text
    - Registered: 2020-10-20 23:35
    - Last Modified: 2017-01-23 01:51
    - 452 bytes
    - Viewed (0)
  8. pages.ko/common/case.md

    # case
    
    > 표현식의 값에 근거하여 분기.
    
    - 변수를 문자열 리터럴과 일치시켜 실행할 명령어 결정:
    
    `case {{$tocount}} in {{words}}) {{wc -w README}}; ;; {{lines}}) {{wc -l README}}; ;; esac`
    
    - 패턴을 |와 결합하고, *를 대비책 패턴으로 사용:
    
    Plain Text
    - Registered: 2020-10-23 14:50
    - Last Modified: 2019-11-19 17:19
    - 416 bytes
    - Viewed (0)
  9. packages/pug-parser/test/cases/case.tokens.json

    {"type":"newline","loc":{"start":{"line":4,"column":1},"filename":"/cases/case.pug","end":{"line":4,"column":5}}}
    {"type":"case","loc":{"start":{"line":4,"column":5},"filename":"/cases/case.pug","end":{"line":4,"column":17}},"val":"friends"}
    Json
    - Registered: 2020-10-20 23:35
    - Last Modified: 2018-02-15 15:25
    - 7.5K bytes
    - Viewed (0)
  10. functional/tester/case_sigterm.go

    	return &caseUntilSnapshot{
    		rpcpbCase: rpcpb.Case_SIGTERM_ONE_FOLLOWER_UNTIL_TRIGGER_SNAPSHOT,
    		Case:      new_Case_SIGTERM_ONE_FOLLOWER(clus),
    	}
    }
    
    func new_Case_SIGTERM_LEADER(clus *Cluster) Case {
    	cc := caseByFunc{
    		rpcpbCase:     rpcpb.Case_SIGTERM_LEADER,
    		injectMember:  inject_SIGTERM_ETCD,
    		recoverMember: recover_SIGTERM_ETCD,
    	}
    	c := &caseLeader{cc, -1, -1}
    	return &caseDelay{
    		Case:          c,
    Go
    - Registered: 2020-10-08 01:10
    - Last Modified: 2020-04-28 00:57
    - 2.6K bytes
    - Viewed (0)
Back to top