MCPcopy Index your code
hub / github.com/upper/db / TestSchemaCollection

Method TestSchemaCollection

adapter/postgresql/postgresql_test.go:792–804  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

790}
791
792func (s *AdapterTests) TestSchemaCollection() {
793 sess := s.Session()
794
795 col := sess.Collection("test_schema.test")
796 _, err := col.Insert(map[string]int{"id": 9})
797 s.Equal(nil, err)
798
799 var dump []map[string]int
800 err = col.Find().All(&dump)
801 s.Nil(err)
802 s.Equal(1, len(dump))
803 s.Equal(9, dump[0]["id"])
804}
805
806func (s *AdapterTests) Test_Issue340_MaxOpenConns() {
807 sess := s.Session()

Callers

nothing calls this directly

Calls 5

SessionMethod · 0.65
CollectionMethod · 0.65
InsertMethod · 0.65
AllMethod · 0.65
FindMethod · 0.65

Tested by

no test coverage detected