2 // Copyright © 2016 Guy M. Allard
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
24 Test sngecomm defaults. Must run with no environment variables set.
26 func TestEnvironmentDefaults(t
*testing
.T
) {
29 t
.Errorf("sngecomm Nqs, expected [%d], got [%d]\n", 1, n
)
34 t
.Errorf("sngecomm Mdml, expected [%d], got [%d]\n", 1024*32, n
)
39 t
.Errorf("sngecomm Pprof, expected [%t], got [%t]\n", false, b
)
44 t
.Errorf("sngecomm AckMode, expected [%s], got [%s]\n", "auto", s
)
49 t
.Errorf("sngecomm SendFactor, expected [%v], got [%v]\n", 1.0, n
)
54 t
.Errorf("sngecomm RecvFactor, expected [%v], got [%v]\n", 1.0, n
)
59 t
.Errorf("sngecomm Pbc, expected [%v], got [%v]\n", 64, n
)
64 t
.Errorf("sngecomm RecvWait, expected [%t], got [%t]\n", true, b
)
69 t
.Errorf("sngecomm SendWait, expected [%t], got [%t]\n", true, b
)
74 t
.Errorf("sngecomm SetMAXPROCS, expected [%t], got [%t]\n", false, b
)