- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 119 for mockk (0.03 sec)
-
cni/pkg/nodeagent/server_test.go
fakeIPSetDeps := ipset.FakeNLDeps() fakeIPSetDeps.On("addIP", mock.Anything, mock.Anything, mock.Anything, mock.Anything, mock.Anything, ).Return(nil).Maybe() fakeIPSetDeps.On("clearEntriesWithIP", mock.Anything, mock.Anything).Return(nil).Maybe() fakeSet := ipset.IPSet{V4Name: "foo-v4", Prefix: "foo", Deps: fakeIPSetDeps}
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 18.7K bytes - Viewed (0) -
cni/pkg/ipset/nldeps_mock.go
// See the License for the specific language governing permissions and // limitations under the License. package ipset import ( "net/netip" "github.com/stretchr/testify/mock" ) type MockedIpsetDeps struct { mock.Mock } func FakeNLDeps() *MockedIpsetDeps { return &MockedIpsetDeps{} } func (m *MockedIpsetDeps) ipsetIPHashCreate(name string, v6 bool) error { args := m.Called(name, v6)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 1.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloseablesTest.java
// 'swallowException' when the mock does not throw an exception. setupCloseable(false); doClose(mockCloseable, false, false); setupCloseable(false); doClose(mockCloseable, true, false); } public void testClose_closeableWithEatenException() throws IOException { // make sure that no exception is thrown if 'swallowException' is true // when the mock does throw an exception. setupCloseable(true);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocPropertiesBuilderTest.groovy
import gradlebuild.docs.dsl.source.model.TypeMetaData class ClassDocPropertiesBuilderTest extends XmlSpecification { final JavadocConverter javadocConverter = Mock() final GenerationListener listener = Mock() final ClassDocPropertiesBuilder builder = new ClassDocPropertiesBuilder(javadocConverter, listener) def buildsPropertiesForClass() { ClassMetaData classMetaData = classMetaData()
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 7.6K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/TypeNameResolverTest.groovy
import spock.lang.Specification import gradlebuild.docs.dsl.source.model.TypeMetaData class TypeNameResolverTest extends Specification { final ClassMetaDataRepository<ClassMetaData> metaDataRepository = Mock() final ClassMetaData classMetaData = Mock() final TypeNameResolver typeNameResolver = new TypeNameResolver(metaDataRepository) def resolvesFullyQualifiedClassName() { when:
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Wed Dec 09 08:14:05 UTC 2020 - 6K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy
TestDomainObject value1 = new TestDomainObject('a') TestDomainObject value2 = new TestDomainObject('a') repository.put('class1', value1) repository.put('class2', value2) Closure cl = Mock() when: repository.each(cl) then: 1 * cl.call(['class1', value1] as Object[]) 1 * cl.call(['class2', value2] as Object[]) 0 * cl._ }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Sat Apr 06 02:21:33 UTC 2024 - 3.8K bytes - Viewed (0) -
build-logic/binary-compatibility/src/test/groovy/gradlebuild/binarycompatibility/rules/IncubatingInternalInterfaceAddedRuleTest.groovy
} def "#member change should not be reported"() { expect: noViolation(rule) where: member << [Mock(JApiMethod), Mock(JApiField), Mock(JApiImplementedInterface), Mock(JApiConstructor)] } def "nothing should be reported if no changes"() { expect: noViolation(rule) }
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Oct 06 19:15:15 UTC 2022 - 4K bytes - Viewed (0) -
src/main/resources/fess_env.properties
# ---------------------------------------------------------- # Mail # ------ # Does it send mock mail? (true: no send actually, logging only) mail.send.mock = true # SMTP server settings for main: host:port mail.smtp.server.main.host.and.port = localhost:25 # The prefix of subject to show test environment or not
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Aug 07 04:53:24 UTC 2021 - 2.2K bytes - Viewed (0) -
cni/pkg/nodeagent/cni-watcher_test.go
client := kube.NewFakeClient(ns, pod) // We are expecting at most 1 calls to the mock, wait for them wg, waitForMockCalls := NewWaitForNCalls(t, 1) fs := &fakeServer{testWG: wg} fs.On("AddPodToMesh", ctx, mock.IsType(pod), util.GetPodIPsIfPresent(pod), valid.Netns, ).Return(nil) dpServer := getFakeDP(fs, client.Kube())
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Oct 09 16:05:45 UTC 2024 - 7.6K bytes - Viewed (0) -
src/main/resources/fess_env_web.properties
# ---------------------------------------------------------- # Mail # ------ # Does it send mock mail? (true: no send actually, logging only) mail.send.mock = false # SMTP server settings for main: host:port mail.smtp.server.main.host.and.port = localhost:25 # The prefix of subject to show test environment or not mail.subject.test.prefix =
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Mon Jan 29 07:34:32 UTC 2018 - 2.2K bytes - Viewed (0)