MCPcopy
hub / github.com/tinode/chat / initDevices

Function initDevices

server/db/common/test_data/test_data.go:307–322  ·  view source on GitHub ↗
(now time.Time)

Source from the content-addressed store, hash-verified

305}
306
307func initDevices(now time.Time) []*types.DeviceDef {
308 devs := make([]*types.DeviceDef, 0, 2)
309 devs = append(devs, &types.DeviceDef{
310 DeviceId: "2934ujfoviwj09ntf094",
311 Platform: "Android",
312 LastSeen: now,
313 Lang: "en_EN",
314 })
315 devs = append(devs, &types.DeviceDef{
316 DeviceId: "pogpjb023b09gfdmp",
317 Platform: "iOS",
318 LastSeen: now,
319 Lang: "en_EN",
320 })
321 return devs
322}
323
324func initFileDefs(now time.Time, users []*types.User) []*types.FileDef {
325 files := make([]*types.FileDef, 0, 2)

Callers 1

InitTestDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…