SJA APS后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
455 B

  1. package lab
  2. import (
  3. "fmt"
  4. "testing"
  5. )
  6. // 测试TOD引擎
  7. func TestLab(t *testing.T) {
  8. var (
  9. lab *LAB
  10. ediFile string
  11. err error
  12. )
  13. // 初始化
  14. lab = &LAB{}
  15. ediFile = "C:\\MES\\LAPP_SEAT\\Documents\\EDI_FILE\\LAB\\BMW.SY78.DELINS.2020020617313143.B0617313"
  16. if err = ParseLabEdi(ediFile, lab); err != nil {
  17. t.Errorf("Failed to parse due to: %v", err)
  18. }
  19. PrintLabEdi(lab)
  20. fmt.Println("Total data rows = ", lab.DataRows)
  21. return
  22. }