-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support load policy from text (#372)
* feat: support load policy from text Signed-off-by: Taoyuesong <[email protected]> * feat: add text adapter Signed-off-by: Taoyuesong <[email protected]> * feat: clean up test project Signed-off-by: Taoyuesong <[email protected]> * fix: remove not used set equal Signed-off-by: Taoyuesong <[email protected]> --------- Signed-off-by: Taoyuesong <[email protected]>
- Loading branch information
1 parent
0b477c0
commit 85b9330
Showing
35 changed files
with
1,871 additions
and
2,163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Casbin.UnitTests.Mock; | ||
|
||
public class TestResource | ||
{ | ||
public TestResource(string name, string owner) | ||
{ | ||
Name = name; | ||
Owner = owner; | ||
} | ||
|
||
public string Name { get; } | ||
|
||
public string Owner { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
namespace Casbin.UnitTests.Mock; | ||
|
||
public class TestSubject | ||
{ | ||
public TestSubject(string name, int age) | ||
{ | ||
Name = name; | ||
Age = age; | ||
} | ||
|
||
public string Name { get; } | ||
|
||
public int Age { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.