• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mybatis / memcached-cache / #205

18 May 2024 03:14PM CUT coverage: 59.788%. Remained the same
#205

Pull #137

github

web-flow
Update JamesIves/github-pages-deploy-action action to v4.6.1
Pull Request #137: Update JamesIves/github-pages-deploy-action action to v4.6.1

58 of 136 branches covered (42.65%)

226 of 378 relevant lines covered (59.79%)

0.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

27.27
/src/main/java/org/mybatis/caches/memcached/DummyReadWriteLock.java
1
/*
2
 *    Copyright 2012-2022 the original author or authors.
3
 *
4
 *    Licensed under the Apache License, Version 2.0 (the "License");
5
 *    you may not use this file except in compliance with the License.
6
 *    You may obtain a copy of the License at
7
 *
8
 *       https://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *    Unless required by applicable law or agreed to in writing, software
11
 *    distributed under the License is distributed on an "AS IS" BASIS,
12
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *    See the License for the specific language governing permissions and
14
 *    limitations under the License.
15
 */
16
package org.mybatis.caches.memcached;
17

18
import java.util.concurrent.TimeUnit;
19
import java.util.concurrent.locks.Condition;
20
import java.util.concurrent.locks.Lock;
21
import java.util.concurrent.locks.ReadWriteLock;
22

23
/**
24
 * @author Iwao AVE!
25
 */
26
class DummyReadWriteLock implements ReadWriteLock {
1✔
27

28
  private Lock lock = new DummyLock();
1✔
29

30
  @Override
31
  public Lock readLock() {
32
    return lock;
×
33
  }
34

35
  @Override
36
  public Lock writeLock() {
37
    return lock;
×
38
  }
39

40
  static class DummyLock implements Lock {
1✔
41

42
    @Override
43
    public void lock() {
44
      // Not Implemented
45
    }
×
46

47
    @Override
48
    public void lockInterruptibly() throws InterruptedException {
49
      // Not Implemented
50
    }
×
51

52
    @Override
53
    public boolean tryLock() {
54
      return true;
×
55
    }
56

57
    @Override
58
    public boolean tryLock(long paramLong, TimeUnit paramTimeUnit) throws InterruptedException {
59
      return true;
×
60
    }
61

62
    @Override
63
    public void unlock() {
64
      // Not Implemented
65
    }
×
66

67
    @Override
68
    public Condition newCondition() {
69
      return null;
×
70
    }
71
  }
72

73
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc