Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Crystalpiny
KVengine_cpp
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
master
Breadcrumbs
KVengine_cpp
/
JsonTest.h
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
27 lines (23 loc) · 885 Bytes
master
Breadcrumbs
KVengine_cpp
/
JsonTest.h
Copy path
Top
File metadata and controls
Code
Blame
27 lines (23 loc) · 885 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef JSON_TEST_H
#define JSON_TEST_H
#include <string>
/**
* @brief 获取指定文件夹下最新的JSON文件名。
*
* 此方法查询给定文件夹,搜索所有扩展名为.json的文件,
* 并返回最新(根据修改时间)的文件的完整路径名。
*
* @param folder_path 指定文件夹的路径。
* @return 返回最新.json文件的完整路径名。如果无法找到.json文件,则返回空字符串。
*/
std::string get_latest_file(const std::string &folder_path);
/**
* @brief 测试跳表的数据保存和加载接口。
*
* @details
* 此函数先创建一个跳表实例,并插入一些示例元素。然后,
* 将跳表的内容保存到一个JSON文件中。之后,从该JSON文件
* 加载数据到一个新的跳表实例,并验证两个跳表是否相等。
*/
void test_load_save_interface();
#endif // JSON_TEST_H
You can’t perform that action at this time.