Changeset 85 for trunk/src/fixtures.erl


Ignore:
Timestamp:
08/04/09 06:06:37 (3 years ago)
Author:
dom
Message:

Replace fix/eg_... files by fixtures:use_tree/2 files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/fixtures.erl

    r47 r85  
    99-export ([use_tree/3]). 
    1010-export ([use_tree/2]). 
     11-export ([unique_string/0]). 
    1112-include_lib ("kernel/include/file.hrl"). 
    1213 
     
    2829unique_string () -> 
    2930    Node = atom_to_list (node ()), 
     31    [Name, Host] = string: tokens (Node, "@"), 
    3032    [Mega, Sec, Micro] = [integer_to_list (X) || X <- tuple_to_list (now ())], 
    31     Node ++ "_" ++ Mega ++ "_" ++ Sec ++ "_" ++ Micro. 
     33    Name ++ "_at_" ++ Host ++ "_" ++ Mega ++ "_" ++ Sec ++ "_" ++ Micro. 
    3234 
    3335populate (Directory, [{file, Name, Content} | Tail]) -> 
Note: See TracChangeset for help on using the changeset viewer.