(t *testing.T)
| 844 | } |
| 845 | |
| 846 | func TestTopicUpdate(t *testing.T) { |
| 847 | update := map[string]any{ |
| 848 | "UpdatedAt": testData.Now.Add(55 * time.Minute), |
| 849 | } |
| 850 | err := adp.TopicUpdate(testData.Topics[0].Id, update) |
| 851 | if err != nil { |
| 852 | t.Fatal(err) |
| 853 | } |
| 854 | var got time.Time |
| 855 | err = db.QueryRow(ctx, "SELECT updatedat FROM topics WHERE name=$1", testData.Topics[0].Id).Scan(&got) |
| 856 | if err != nil { |
| 857 | t.Fatal(err) |
| 858 | } |
| 859 | if got != update["UpdatedAt"] { |
| 860 | t.Error(mismatchErrorString("UpdatedAt", got, update["UpdatedAt"])) |
| 861 | } |
| 862 | } |
| 863 | |
| 864 | func TestTopicUpdateSubCnt(t *testing.T) { |
| 865 | // Test PostgreSQL specific method |
nothing calls this directly
no test coverage detected
searching dependent graphs…