-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix bug on reshare process * take beacon id from group file on resharing command * add an extra check on reshare cmd on CLI * add one extra check to deny use of period flag on reshare cmd
- Loading branch information
1 parent
105ea6f
commit 437aa1f
Showing
6 changed files
with
70 additions
and
7 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,18 @@ | ||
package common | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
func TestCompareBeaconIDs(t *testing.T) { | ||
require.True(t, CompareBeaconIDs("", "")) | ||
require.True(t, CompareBeaconIDs("", DefaultBeaconID)) | ||
require.True(t, CompareBeaconIDs(DefaultBeaconID, "")) | ||
require.True(t, CompareBeaconIDs(DefaultBeaconID, DefaultBeaconID)) | ||
require.False(t, CompareBeaconIDs("beacon_5s", DefaultBeaconID)) | ||
require.False(t, CompareBeaconIDs("beacon_5s", "")) | ||
require.False(t, CompareBeaconIDs(DefaultBeaconID, "beacon_5s")) | ||
require.False(t, CompareBeaconIDs("", "beacon_5s")) | ||
} |
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