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

realm / realm-core / github_pull_request_312964

19 Feb 2025 07:31PM UTC coverage: 90.814% (-0.3%) from 91.119%
github_pull_request_312964

Pull #8071

Evergreen

web-flow
Bump serialize-javascript and mocha

Bumps [serialize-javascript](https://github.com/yahoo/serialize-javascript) to 6.0.2 and updates ancestor dependency [mocha](https://github.com/mochajs/mocha). These dependencies need to be updated together.


Updates `serialize-javascript` from 6.0.0 to 6.0.2
- [Release notes](https://github.com/yahoo/serialize-javascript/releases)
- [Commits](https://github.com/yahoo/serialize-javascript/compare/v6.0.0...v6.0.2)

Updates `mocha` from 10.2.0 to 10.8.2
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v10.2.0...v10.8.2)

---
updated-dependencies:
- dependency-name: serialize-javascript
  dependency-type: indirect
- dependency-name: mocha
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #8071: Bump serialize-javascript and mocha

96552 of 179126 branches covered (53.9%)

212672 of 234185 relevant lines covered (90.81%)

3115802.0 hits per line

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

0.0
/test/util/verified_integer.hpp
1
/*************************************************************************
2
 *
3
 * Copyright 2016 Realm Inc.
4
 *
5
 * Licensed under the Apache License, Version 2.0 (the "License");
6
 * you may not use this file except in compliance with the License.
7
 * You may obtain a copy of the License at
8
 *
9
 * http://www.apache.org/licenses/LICENSE-2.0
10
 *
11
 * Unless required by applicable law or agreed to in writing, software
12
 * distributed under the License is distributed on an "AS IS" BASIS,
13
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 * See the License for the specific language governing permissions and
15
 * limitations under the License.
16
 *
17
 **************************************************************************/
18

19
#ifndef REALM_TEST_UTIL_VERIFIED_INTEGER_HPP
20
#define REALM_TEST_UTIL_VERIFIED_INTEGER_HPP
21

22
#include <cstddef>
23
#include <vector>
24

25
#include <realm/array.hpp>
26
#include <realm/column_integer.hpp>
27

28
#include "random.hpp"
29

30
namespace realm {
31
namespace test_util {
32

33

34
class VerifiedInteger {
35
public:
36
    VerifiedInteger(Random&);
37
    ~VerifiedInteger();
38
    void add(int64_t value);
39
    void insert(size_t ndx, int64_t value);
40
    void insert(size_t ndx, const char* value);
41
    int64_t get(size_t ndx);
42
    void set(size_t ndx, int64_t value);
43
    void erase(size_t ndx);
44
    void clear();
45
    size_t find_first(int64_t value);
46
    size_t size();
47
    int64_t sum(size_t start = 0, size_t end = -1);
48
    int64_t maximum(size_t start = 0, size_t end = -1);
49
    int64_t minimum(size_t start = 0, size_t end = -1);
50
    bool verify();
51
    bool occasional_verify();
52
    void verify_neighbours(size_t ndx);
53

54
private:
55
    std::vector<int64_t> v;
56
    IntegerColumn u;
57
    Random& m_random;
58
};
59

60

61
// Implementation
62

63
inline VerifiedInteger::VerifiedInteger(Random& random)
64
    : u(Allocator::get_default())
×
65
    , m_random(random)
×
66
{
×
67
    u.create();
×
68
}
×
69

70

71
} // namespace test_util
72
} // namespace realm
73

74
#endif // REALM_TEST_UTIL_VERIFIED_INTEGER_HPP
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

© 2026 Coveralls, Inc