Skip to content

Commit

Permalink
Write tests for cassandra/queue.go
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir committed Apr 2, 2024
1 parent bbb7772 commit 7363688
Show file tree
Hide file tree
Showing 3 changed files with 939 additions and 9 deletions.
10 changes: 2 additions & 8 deletions common/persistence/nosql/nosqlplugin/cassandra/queue.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,10 @@ func (db *cdb) GetQueueSize(
return result["count"].(int64), nil
}

func getMessagePayload(
message map[string]interface{},
) []byte {

func getMessagePayload(message map[string]interface{}) []byte {
return message["message_payload"].([]byte)
}

func getMessageID(
message map[string]interface{},
) int64 {

func getMessageID(message map[string]interface{}) int64 {
return message["message_id"].(int64)
}
Loading

0 comments on commit 7363688

Please sign in to comment.