Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mtxclient
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nheko Reborn
mtxclient
Commits
5fda3d2c
Commit
5fda3d2c
authored
2 years ago
by
Malte E
Browse files
Options
Downloads
Patches
Plain Diff
remove struct from requests.hpp, make Test check for LE
parent
faeee8ce
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/mtx/requests.hpp
+0
-10
0 additions, 10 deletions
include/mtx/requests.hpp
tests/client_api.cpp
+1
-1
1 addition, 1 deletion
tests/client_api.cpp
with
1 addition
and
11 deletions
include/mtx/requests.hpp
+
0
−
10
View file @
5fda3d2c
...
...
@@ -439,15 +439,5 @@ struct SetPusher
friend
void
to_json
(
nlohmann
::
json
&
obj
,
const
SetPusher
&
req
);
};
struct
userDirectorySearch
{
//! The maximum number of results to return. Defaults to 10.
std
::
optional
<
int
>
limit
;
//! Required: The term to search for
std
::
string
search_term
;
friend
void
to_json
(
nlohmann
::
json
&
obj
,
const
userDirectorySearch
&
data
);
};
}
// namespace requests
}
// namespace mtx
This diff is collapsed.
Click to expand it.
tests/client_api.cpp
+
1
−
1
View file @
5fda3d2c
...
...
@@ -1897,7 +1897,7 @@ TEST(ClientAPI, Users)
"Bob"
,
[
alice
](
const
mtx
::
responses
::
Users
&
users
,
RequestErr
err
)
{
check_error
(
err
);
EXPECT_E
Q
(
users
.
results
.
size
(),
1
);
EXPECT_
L
E
(
users
.
results
.
size
(),
1
);
EXPECT_EQ
(
users
.
limited
,
true
);
},
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment