Skip to content

Commit

Permalink
Fix more tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-ludwig committed Feb 8, 2024
1 parent 7e748d0 commit d461b50
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/vibe.web.rest.1125/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ shared static this()
}

interface ILlama {
@safe:
@bodyParam("llama", "llama")
string updateLlama(string llama = null);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/vibe.web.rest.1140/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import vibe.d;

interface IOrientDBRoot
{
@safe:
@property IOrientDBQuery query();
}

interface IOrientDBQuery
{
@safe:
@method(HTTPMethod.GET)
@path(":db_name/sql/:query/:result_set_size")
Json sql(string _db_name, string _query, int _result_set_size);
Expand Down
1 change: 1 addition & 0 deletions tests/vibe.web.rest.1230/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import std.datetime;
import vibe.d;

interface ITestAPI {
@safe:
string postDefault(int value, bool check = true);
}

Expand Down
2 changes: 2 additions & 0 deletions tests/vibe.web.rest.1922/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ struct AuthInfo {

@requiresAuth
interface IItemAPI {
@safe:
struct CollectionIndices {
string item;
}
Expand All @@ -66,6 +67,7 @@ class ItemAPI : IItemAPI {

@requiresAuth
interface IAuthAPI {
@safe:
@noAuth int getNonAuthNumber(int num);
@anyAuth int getAuthNumber(AuthInfo info, int num);
@anyAuth Collection!IItemAPI items();
Expand Down
1 change: 1 addition & 0 deletions tests/vibe.web.rest.2506/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ struct TestStruct {int i;}

interface IService
{
@safe:
@safe TestStruct getTest(int sleepsecs);
@safe TestStruct getTest2(int sleepsecs);
}
Expand Down
1 change: 1 addition & 0 deletions tests/vibe.web.rest.auth/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ struct Auth {

@requiresAuth
interface IService {
@safe:
@noAuth int getPublic();
@anyAuth int getAny();
@anyAuth int getAnyA(Auth auth);
Expand Down

0 comments on commit d461b50

Please sign in to comment.