Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 5,954 for mock (0.19 sec)

  1. mock/mock.go

    // Copyright 2019 Drone.IO Inc. All rights reserved.
    // Use of this source code is governed by the Drone Non-Commercial License
    // that can be found in the LICENSE file.
    
    // +build !oss
    
    package mock
    
    Go
    - Registered: 2021-10-27 22:30
    - Last Modified: 2021-09-24 09:06
    - 749 bytes
    - Viewed (0)
  2. planner/core/mock.go

    func MockContext() sessionctx.Context {
    	ctx := mock.NewContext()
    	ctx.Store = &mock.Store{
    		Client: &mock.Client{},
    	}
    	ctx.GetSessionVars().CurrentDB = "test"
    	do := &domain.Domain{}
    	if err := do.CreateStatsHandle(ctx); err != nil {
    		panic(fmt.Sprintf("create mock context panic: %+v", err))
    	}
    	domain.BindDomain(ctx, do)
    	return ctx
    }
    
    // MockPartitionInfoSchema mocks an info schema for partition table.
    Go
    - Registered: 2021-08-05 09:02
    - Last Modified: 2021-08-02 06:17
    - 10.2K bytes
    - Viewed (0)
  3. command/webbrowser/mock.go

    )
    
    // NewMockLauncher creates and returns a mock implementation of Launcher,
    // with some special behavior designed for use in unit tests.
    //
    // See the documentation of MockLauncher itself for more information.
    func NewMockLauncher(ctx context.Context) *MockLauncher {
    	client := httpclient.New()
    	return &MockLauncher{
    		Client:  client,
    		Context: ctx,
    	}
    }
    
    // MockLauncher is a mock implementation of Launcher that has some special
    Go
    - Registered: 2021-10-01 08:04
    - Last Modified: 2019-09-09 18:15
    - 5.8K bytes
    - Viewed (0)
  4. mock/mockscm/mock.go

    // Use of this source code is governed by the Drone Non-Commercial License
    // that can be found in the LICENSE file.
    
    // +build !oss
    
    package mockscm
    
    Go
    - Registered: 2021-10-27 22:30
    - Last Modified: 2019-03-06 07:47
    - 391 bytes
    - Viewed (0)
  5. owner/mock.go

    // So this worker will always be the owner.
    type mockManager struct {
    	owner  int32
    	id     string // id is the ID of manager.
    	cancel context.CancelFunc
    }
    
    // NewMockManager creates a new mock Manager.
    func NewMockManager(ctx context.Context, id string) Manager {
    	_, cancelFunc := context.WithCancel(ctx)
    	return &mockManager{
    		id:     id,
    		cancel: cancelFunc,
    	}
    }
    
    Go
    - Registered: 2021-08-05 09:02
    - Last Modified: 2020-05-09 06:28
    - 2.1K bytes
    - Viewed (0)
  6. test/data/mock.php

    		} else {
    			echo 'QUnit.assert.ok( true, "mock executed" );';
    		}
    	}
    
    	// Used to be in test.js, but was renamed to testbar.php
    	// https://github.com/jquery/jquery/commit/d89c278a33#commitcomment-23423165
    	protected function testbar( $req ) {
    		echo 'this.testBar = "bar";
    jQuery("#ap").html("bar");
    QUnit.assert.ok( true, "mock executed");';
    	}
    
    	protected function json( $req ) {
    PHP
    - Registered: 2021-10-25 05:12
    - Last Modified: 2020-09-22 15:30
    - 7.9K bytes
    - Viewed (0)
  7. lib/fs/__tests__/mock.js

    var createMockFS = require('../mock');
    
    describe('MockFS', function() {
        var fs = createMockFS({
            'README.md': 'Hello World',
            'SUMMARY.md': '# Summary',
            'folder': {
                'test.md': 'Cool',
                'folder2': {
                    'hello.md': 'Hello',
                    'world.md': 'World'
                }
            }
        });
    
        describe('exists', function() {
    JavaScript
    - Registered: 2021-10-29 14:35
    - Last Modified: 2016-05-11 11:02
    - 2.4K bytes
    - Viewed (0)
  8. ddl/mock.go

    const mockCheckVersInterval = 2 * time.Millisecond
    
    // MockSchemaSyncer is a mock schema syncer, it is exported for tesing.
    type MockSchemaSyncer struct {
    	selfSchemaVersion int64
    	globalVerCh       chan clientv3.WatchResponse
    	mockSession       chan struct{}
    }
    
    // NewMockSchemaSyncer creates a new mock SchemaSyncer.
    func NewMockSchemaSyncer() util.SchemaSyncer {
    	return &MockSchemaSyncer{}
    }
    
    Go
    - Registered: 2021-08-05 09:02
    - Last Modified: 2021-07-15 08:13
    - 5.2K bytes
    - Viewed (0)
  9. lib/vscode/src/vs/base/test/common/mock.ts

     *--------------------------------------------------------------------------------------------*/
    
    export interface Ctor<T> {
    	new(): T;
    }
    
    export function mock<T>(): Ctor<T> {
    	return function () { } as any;
    Plain Text
    - Registered: 2021-10-12 22:17
    - Last Modified: 2020-12-15 22:52
    - 465 bytes
    - Viewed (0)
  10. lib/plugins/create/templates/aws-nodejs-typescript/src/functions/hello/mock.json

    Frédéric Barthelet <******@****.***> 1608649190 +0100
    Json
    - Registered: 2021-10-05 02:18
    - Last Modified: 2020-12-22 14:59
    - 100 bytes
    - Viewed (0)
Back to top