@@ -311,6 +311,138 @@ func TestCreateLogs(t *testing.T) {
311311 expectedSeverityNumber : plog .SeverityNumberUnspecified ,
312312 expectError : false ,
313313 },
314+ {
315+ desc : "platform.initStart anything" ,
316+ slice : []event {
317+ {
318+ Time : "2022-10-12T00:03:50.000Z" ,
319+ Type : "platform.initStart" ,
320+ Record : map [string ]any {},
321+ },
322+ },
323+ expectedLogRecords : 0 ,
324+ expectError : false ,
325+ },
326+ {
327+ desc : "platform.initRuntimeDone anything" ,
328+ slice : []event {
329+ {
330+ Time : "2022-10-12T00:03:50.000Z" ,
331+ Type : "platform.initRuntimeDone" ,
332+ Record : map [string ]any {},
333+ },
334+ },
335+ expectedLogRecords : 0 ,
336+ expectError : false ,
337+ },
338+ {
339+ desc : "platform.initReport anything" ,
340+ slice : []event {
341+ {
342+ Time : "2022-10-12T00:03:50.000Z" ,
343+ Type : "platform.initReport" ,
344+ Record : map [string ]any {},
345+ },
346+ },
347+ expectedLogRecords : 0 ,
348+ expectError : false ,
349+ },
350+ {
351+ desc : "platform.start anything" ,
352+ slice : []event {
353+ {
354+ Time : "2022-10-12T00:03:50.000Z" ,
355+ Type : "platform.start" ,
356+ Record : map [string ]any {},
357+ },
358+ },
359+ expectedLogRecords : 0 ,
360+ expectError : false ,
361+ },
362+ {
363+ desc : "platform.runtimeDone anything" ,
364+ slice : []event {
365+ {
366+ Time : "2022-10-12T00:03:50.000Z" ,
367+ Type : "platform.runtimeDone" ,
368+ Record : map [string ]any {},
369+ },
370+ },
371+ expectedLogRecords : 0 ,
372+ expectError : false ,
373+ },
374+ {
375+ desc : "platform.report anything" ,
376+ slice : []event {
377+ {
378+ Time : "2022-10-12T00:03:50.000Z" ,
379+ Type : "platform.report" ,
380+ Record : map [string ]any {},
381+ },
382+ },
383+ expectedLogRecords : 0 ,
384+ expectError : false ,
385+ },
386+ {
387+ desc : "platform.restoreStart anything" ,
388+ slice : []event {
389+ {
390+ Time : "2022-10-12T00:03:50.000Z" ,
391+ Type : "platform.restoreStart" ,
392+ Record : map [string ]any {},
393+ },
394+ },
395+ expectedLogRecords : 0 ,
396+ expectError : false ,
397+ },
398+ {
399+ desc : "platform.restoreRuntimeDone anything" ,
400+ slice : []event {
401+ {
402+ Time : "2022-10-12T00:03:50.000Z" ,
403+ Type : "platform.restoreRuntimeDone" ,
404+ Record : map [string ]any {},
405+ },
406+ },
407+ expectedLogRecords : 0 ,
408+ expectError : false ,
409+ },
410+ {
411+ desc : "platform.restoreReport anything" ,
412+ slice : []event {
413+ {
414+ Time : "2022-10-12T00:03:50.000Z" ,
415+ Type : "platform.restoreStart" ,
416+ Record : map [string ]any {},
417+ },
418+ },
419+ expectedLogRecords : 0 ,
420+ expectError : false ,
421+ },
422+ {
423+ desc : "platform.telemetrySubscription anything" ,
424+ slice : []event {
425+ {
426+ Time : "2022-10-12T00:03:50.000Z" ,
427+ Type : "platform.telemetrySubscription" ,
428+ Record : map [string ]any {},
429+ },
430+ },
431+ expectedLogRecords : 0 ,
432+ expectError : false ,
433+ },
434+ {
435+ desc : "platform.logsDropped anything" ,
436+ slice : []event {
437+ {
438+ Time : "2022-10-12T00:03:50.000Z" ,
439+ Type : "platform.logsDropped" ,
440+ Record : map [string ]any {},
441+ },
442+ },
443+ expectedLogRecords : 0 ,
444+ expectError : false ,
445+ },
314446 }
315447 for _ , tc := range testCases {
316448 t .Run (tc .desc , func (t * testing.T ) {
0 commit comments