()
| 717 | } |
| 718 | |
| 719 | func (c *CacheTestSuite) TestGetAllGiteaCredentials() { |
| 720 | credentials1 := params.ForgeCredentials{ |
| 721 | ID: 1, |
| 722 | } |
| 723 | credentials2 := params.ForgeCredentials{ |
| 724 | ID: 2, |
| 725 | } |
| 726 | SetGiteaCredentials(credentials1) |
| 727 | SetGiteaCredentials(credentials2) |
| 728 | |
| 729 | cachedCreds := GetAllGiteaCredentials() |
| 730 | c.Require().Len(cachedCreds, 2) |
| 731 | c.Require().Contains(cachedCreds, credentials1) |
| 732 | c.Require().Contains(cachedCreds, credentials2) |
| 733 | } |
| 734 | |
| 735 | func (c *CacheTestSuite) TestDeleteGiteaCredentials() { |
| 736 | credentials := params.ForgeCredentials{ |
nothing calls this directly
no test coverage detected